Building a free Android version of my app for Google Play with Chartboost and get as far as this (via install.html)...
'To add new ad framework to Android, create a class with Ads prefix and only first Caps letter of ad frame work, for example, to add AdMob support, create AdsAdmob class which implements AdsInterface, then wrap all autogenerated methods to AdMob functionality.'
@MobAmuse this is only to the members which would like to add any unsupported ad frameworks. Basically what you can do is delete all unneeded interfaces, leaving only Ads.java AdsInterface.java and the frameworks you are going to use, like AdsChartboost.java and then install the chartboost sdk how described in their docs or copy existing chartboost sdk from libs folder and use Usage Matrix: http://docs.giderosmobile.com/AdsInterfaceUsageMatrix.htm
As you will see you need to add permissions to your AndroidManifest if you don't have them yet.
"or copy existing chartboost sdk from libs folder and use Usage Matrix:"
OK yes regards chartboost only, I exported my gideros project that contains chartboost lua stuff and then I copied the chartboost.jar to my libs folder in eclipse and added the required permissions to the manifest. All compiled ok but when I run the apk on target device (Galaxy Tab II 7.0) I get a white screen in landscape and then it dumps me out to the android desktop.
No errors no. It bombs out on all my android devices. I must be doing something wrong. I can compile their example from their sdk and it works fine. I will try some more tests on Monday. All I'm doing is exporting my gideros project with the lua chartboost stuff, then adding the charboost.jar to my libs folder and updating ths manifest permissions accordingly. Other than that the app targets large and extra large screen devices (not small) with dirty scale as its mainly for tablets etc. and displays in landscape. I'm only adding the chartboost stuff to a duplicate of the fully working paid version gideros project of course, nothing special just free. Odd.
Just to add the app in question does not call an ad until next level or quit game so even more odd that it crashes on boot ...must be an chartboost related ad init thing I guess ...or me LOL Give me some 68K, 6502 or Z80 and I'm your man - old skool me.
@ar2rsawseen That all works great thank you again! If you email me your postal address to info[at]mobileamusements[dot]com I'll get a free gift sent out to you in the post
...I've tried to do the same with the iOS version but although it compiles and runs on iPad for example I get the following error in the Xcode 4.6.3 output console...
*callFile* stack NOT ok begin:1 end:1 delta:-1 libc++abi.dylib: terminate called throwing an exception (lldb)
..and a SIGABRT error on line in here...
// // main.m // // Copyright (c) 2012 Gideros Mobile. All rights reserved. //
#import
int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, @AppDelegate); // SIGABRT ERROR HERE [pool release]; return retVal; }
Any clues or anything as there's not much I can do wrong on the iOS one at least LOL
I think with Apple's possible policy of not having 2 versions of a same/similar app on the store it's not going to matter anyway tho unless I use IAP to switch off the ads - don't want to go there really.
BTW currently frameworks offer different ad sizes, but they don't scale like Admob smart_banners for example. So would it interest you guys if a type auto would provided, to determine and load biggest possible ad that is equal or less than current screen?
Gideros Ads Interface provides not only same interface for different ad networks and platforms, but now will also provide an ability to retrieve ad dimensions (even before ad is loaded) position the ad by pixels (which are automatically compliant with auto scaling feature) and even tween your ads
In manual we have: "You must install each ad framework you want to use based on their instalation instructions (usually by adding .jar file to project and modifying AndroidManifest file)"
But when i'm adding admob sdk i receive an error: [2013-08-20 21:55:32 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/ads/Ad; [2013-08-20 21:55:32 - antonyms] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/ads/Ad;
And is it possible to provide example of this: To add new ad framework to Android, create a class with Ads prefix and only first Caps letter of ad frame work, for example, to add AdMob support, create AdsAdmob class which implements AdsInterface, then wrap all autogenerated methods to AdMob functionality.
To add something to the rendering View, use Ads.addAd or Ads.removeAd static methods
2) when Ads Interface will reach stable state I will Prepare more detail tutorial in blog post, including adding your own ad frameworks to the same interface
At Guava7 we had to build ourselves ads API for our framework a few months ago. And we also can control ads rotation as well as ads order from our server
I'd love to share many things in the form of source code but actually they're pretty much specific to/dependent from our framework (built on top of Gideros), so they're almost cannot be used as-is.
@unlying sure I'll check it out, which ad provider, which ad size on which screen resolution (with what screen density) And does it work without alignment?
Comments
Likes: jdbc
'To add new ad framework to Android, create a class with Ads prefix and only first Caps letter of ad frame work, for example, to add AdMob support, create AdsAdmob class which implements AdsInterface, then wrap all autogenerated methods to AdMob functionality.'
...Er, I'm lost :P
Basically what you can do is delete all unneeded interfaces, leaving only Ads.java AdsInterface.java and the frameworks you are going to use, like AdsChartboost.java and then install the chartboost sdk how described in their docs
or copy existing chartboost sdk from libs folder and use Usage Matrix:
http://docs.giderosmobile.com/AdsInterfaceUsageMatrix.htm
As you will see you need to add permissions to your AndroidManifest if you don't have them yet.
Likes: MobAmuse
OK yes regards chartboost only, I exported my gideros project that contains chartboost lua stuff and then I copied the chartboost.jar to my libs folder in eclipse and added the required permissions to the manifest. All compiled ok but when I run the apk on target device (Galaxy Tab II 7.0) I get a white screen in landscape and then it dumps me out to the android desktop.
Likes: MobAmuse
Likes: MobAmuse
Likes: MobAmuse
https://play.google.com/store/apps/details?id=com.mobileamusements.DweebsFREE
...I've tried to do the same with the iOS version but although it compiles and runs on iPad for example I get the following error in the Xcode 4.6.3 output console...
*callFile* stack NOT ok begin:1 end:1 delta:-1
libc++abi.dylib: terminate called throwing an exception
(lldb)
..and a SIGABRT error on line in here...
//
// main.m
//
// Copyright (c) 2012 Gideros Mobile. All rights reserved.
//
#import
int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @AppDelegate); // SIGABRT ERROR HERE
[pool release];
return retVal;
}
Any clues or anything as there's not much I can do wrong on the iOS one at least LOL
Likes: MobAmuse
So would it interest you guys if a type auto would provided, to determine and load biggest possible ad that is equal or less than current screen?
Gideros Ads Interface provides not only same interface for different ad networks and platforms, but now will also provide an ability to retrieve ad dimensions (even before ad is loaded) position the ad by pixels (which are automatically compliant with auto scaling feature) and even tween your ads
Likes: MobAmuse, atilim, SinisterSoft, arcadia
"You must install each ad framework you want to use based on their instalation instructions (usually by adding .jar file to project and modifying AndroidManifest file)"
But when i'm adding admob sdk i receive an error:
[2013-08-20 21:55:32 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/ads/Ad;
[2013-08-20 21:55:32 - antonyms] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/ads/Ad;
And is it possible to provide example of this:
To add new ad framework to Android, create a class with Ads prefix and only first Caps letter of ad frame work, for example, to add AdMob support, create AdsAdmob class which implements AdsInterface, then wrap all autogenerated methods to AdMob functionality.
To add something to the rendering View, use Ads.addAd or Ads.removeAd static methods
1) unfortunately I'm afraid the problem lies somewhere else and I have no idea where
http://www.giderosmobile.com/forum/discussion/3680/google-licensing-issue-on-latest-android-tools/p1
You can try asking @SinisterSoft if he got over the problem
2) when Ads Interface will reach stable state I will Prepare more detail tutorial in blog post, including adding your own ad frameworks to the same interface
Likes: MobAmuse
And we also can control ads rotation as well as ads order from our server
I'd love to share many things in the form of source code but actually they're pretty much specific to/dependent from our framework (built on top of Gideros), so they're almost cannot be used as-is.
Likes: gorkem
I have setAlignment("center", "bottom")
And does it work without alignment?
It is amazon "320x50". Screen resolution 480*800
Likes: MobAmuse