@vitalitymobile I would like to help but it seems that I have very similiar error as yours: problem with locating/linking with libchartboost.so. We must wait for kindness of authors
@All I found something interesting about similiar behaviour: "All version of the library has this function however the PROTOTYPE of the function has been changed at the end of 2010 so you app built for 4.0.4 NDK will not run on FroYo devices or GB devices with the same symptomatic: dlopen cannot load library" I must say that I also have Froyo device.. @vitalitymobile what device do you have? @zaniar is this case relevant to your plugin? More details: http://stackoverflow.com/a/14645288
Do you compile plugins or was it provided as so object? If you compile it yourself, then in @vitalymobile case it seems not all headers are included. Go to you Gideros instalation folder and copy everything from skd/include folder to your jni folder
Ah, it seems that Gideros plugin API has changed a bit. Basically if you replace: g_nextgid -> g_NextId gevent_removeEventsWithGid -> gevent_RemoveEventsWithGid gevent_createEventStruct1 -> gevent_CreateEventStruct1 gevent_enqueueEvent -> gevent_EnqueueEvent
Any update for cacheInterstitial() function? cached ads works really good in iOS but on android this function doesn't exists. So sorry because I am noob at plugins >"<
@all what can I say just only: I recommend Chartboost plugin! short review of revenue after almost 2 weeks since integration Android only (Amazon & Google Play, 4(2x2) apps ): average revenue: 0,05 $ per click an ad and 0.5 $ per 1 install... @zaniar@ar2rsawseen once again thank you!
@thanhquan1512 Ironically after my little paean about this plugin, I've just received tonight my first but the same report as you:
java.lang.NullPointerException at com.nightspade.gideros.android.plugins.chartboost.GChartBoost.onKeyUp(GChartBoost.java:59) at com.giderosmobile.android.CupidGameofLoveActivity.onKeyUp(CupidGameofLoveActivity.java:201) at android.view.KeyEvent.dispatch(KeyEvent.java:1294) at android.app.Activity.dispatchKeyEvent(Activity.java:2078) at
Something is wrong with hierarchy of activities: main and GChartBoost... I suggest, as I've done this morning, to turn off remapping of Chartboost activity by BACK button until it will be solved. You need just to revoke default code at this section of main activity:
I have integrated Charboost Android Plugin with new Gideros version 2013.06.03
You will need to change APP_STL := stlport_static in Application.mk file for solve include problem.
Anyway Gideros include files are now different from github Charboost Android Plugin project, so you will need update reference in C++ chartboost plugin source code.
Now you will could use ndk-build from inside Android folder to compile and generate libchartboost.so file
This is our first post and there are chances of mistakes so please bear with me.
Scenario We got a project from a client to create an ios game from a flash action script 3.0 game. He have bought the game code and given us to modify it so it can be played back on iPhone and iPod. This was not a big deal for a company like us. We made the game and it got approved straight away. So we got another project with a new requirement of displaying ads from chartboost. We have read through Adobe forums and find out about the Native Extension so we made a deal with client.
Problems We thought it would be an easy job but as we dig into creating NE, Native Extension, we find out lots of difficulties. We first contacted to ChartBoost if they already have any solution for games developed in Flash and ported for iOS. Their answer was a “NO”. So we decided to develop it in our lab. Next trouble was to combine static library from ChartBoost with NE we wanted to create. Salil worked on that problem and as we are in different timezones I had to work during nights for testing. Salil has wrote a post about it here.
Solution My Brother have developed .a file using ChartBoost SDK and I have developed .swc component to be used inside the game. So to compile .ane file I have to get library.swf from the swc file and send to him so he can compile .a file using swc and library.swf and generate .ane file. He then send .ane file back to me so I can compile the game using that .ane file. After a week we got it working perfectly and the game showing ChartBoost ads. We submit the game and it got approved. Cool isn’t it.
Files Here are the files. Create ane file using adt compiler and do the following 1. Import swc file in your game 2. Ad the following code to the game var _chartboostExtension:ChartBoost = new ChartBoost(); _chartboostExtension.startAndShowChartboost(“Your App Id”,”Your App Signature”);
Due to work load we can not provide support for this. Please leave your message and we will try to help you out.
Thanks for reading though. I hope it was not a bad experience
Comments
Yes I have the same error:
Ultimate Games on Appstore
Ultimate Games on Google Play
https://play.google.com/store/apps/developer?id=My+name+is+Originality
I must say that I also have Froyo device..
@vitalitymobile what device do you have?
@zaniar is this case relevant to your plugin?
More details:
http://stackoverflow.com/a/14645288
https://play.google.com/store/apps/developer?id=My+name+is+Originality
I tested on Sony Xperia P phone with Android Version 4.0.4.
If you compile it yourself, then in @vitalymobile case it seems not all headers are included. Go to you Gideros instalation folder and copy everything from skd/include folder to your jni folder
I try using .so file and compile but it still not work.
You can download android project from here, I need your help!
https://www.dropbox.com/s/i6zch5dggxfclfb/TestPlugin_Android.zip
I copy all file from c:\Program Files (x86)\Gideros\Sdk\include to jni\sdk\include but can not compile .so file. ( ndk-build from android-ndk-r8d)
Likes: vitalitymobile, fxone
g_nextgid -> g_NextId
gevent_removeEventsWithGid -> gevent_RemoveEventsWithGid
gevent_createEventStruct1 -> gevent_CreateEventStruct1
gevent_enqueueEvent -> gevent_EnqueueEvent
Then everything should work.
Here's a modified test project
Likes: vitalitymobile, fxone
https://play.google.com/store/apps/developer?id=My+name+is+Originality
Thanks @ar2rsawseen !
When try to resolve this plugin problem, I feel lazy to export project again and again...
So I create a small tool: http://www.giderosmobile.com/forum/discussion/2811/tool-for-auto-generate-plugins-code-into-android-project#Item_1
Likes: fxone, ar2rsawseen
after making chartboost plugin work, I am stucked with another error (related to admob plugin), I will check again to be sure that I did right steps.
Ultimate Games on Appstore
Ultimate Games on Google Play
Likes: thanhquan1512
Admob and Chartboost work well on my project
Ultimate Games on Appstore
Ultimate Games on Google Play
Ultimate Games on Appstore
Ultimate Games on Google Play
what can I say just only: I recommend Chartboost plugin! short review of revenue after almost 2 weeks since integration Android only (Amazon & Google Play, 4(2x2) apps ):
average revenue: 0,05 $ per click an ad and 0.5 $ per 1 install...
@zaniar @ar2rsawseen once again thank you!
https://play.google.com/store/apps/developer?id=My+name+is+Originality
I suggest, as I've done this morning, to turn off remapping of Chartboost activity by BACK button until it will be solved. You need just to revoke default code at this section of main activity:
https://play.google.com/store/apps/developer?id=My+name+is+Originality
"04-26 22:59:24.523: W/Chartboost(599): Request failed: org.apache.http.message.BasicHttpResponse@41326f50"
You will need to change APP_STL := stlport_static in Application.mk file for solve include problem.
Anyway Gideros include files are now different from github Charboost Android Plugin project, so you will need update reference in C++ chartboost plugin source code.
Now you will could use ndk-build from inside Android folder to compile and generate libchartboost.so file
This method is not exposed as public from lua. I have changed some C++ code for that issue, but I am sure it will works.
ANE-Chartboost
This is our first post and there are chances of mistakes so please bear with me.
Scenario
We got a project from a client to create an ios game from a flash action script 3.0 game. He have bought the game code and given us to modify it so it can be played back on iPhone and iPod. This was not a big deal for a company like us. We made the game and it got approved straight away. So we got another project with a new requirement of displaying ads from chartboost. We have read through Adobe forums and find out about the Native Extension so we made a deal with client.
Problems
We thought it would be an easy job but as we dig into creating NE, Native Extension, we find out lots of difficulties. We first contacted to ChartBoost if they already have any solution for games developed in Flash and ported for iOS. Their answer was a “NO”. So we decided to develop it in our lab. Next trouble was to combine static library from ChartBoost with NE we wanted to create. Salil worked on that problem and as we are in different timezones I had to work during nights for testing. Salil has wrote a post about it here.
Solution
My Brother have developed .a file using ChartBoost SDK and I have developed .swc component to be used inside the game. So to compile .ane file I have to get library.swf from the swc file and send to him so he can compile .a file using swc and library.swf and generate .ane file. He then send .ane file back to me so I can compile the game using that .ane file. After a week we got it working perfectly and the game showing ChartBoost ads. We submit the game and it got approved. Cool isn’t it.
Files
Here are the files. Create ane file using adt compiler and do the following
1. Import swc file in your game
2. Ad the following code to the game
var _chartboostExtension:ChartBoost = new ChartBoost();
_chartboostExtension.startAndShowChartboost(“Your App Id”,”Your App Signature”);
Due to work load we can not provide support for this. Please leave your message and we will try to help you out.
Thanks for reading though. I hope it was not a bad experience
download:http://code.google.com/p/chartboost-sdk/