Hello,
here is my first attempt on Android plugins for Gideros.
This is basically an analog of Flurry plugin for IOS using same methods described in Gideros docs.
http://appcodingeasy.com/Gideros-Mobile/Flurry-plugin-for-AndroidAs this is the first attempt, would like to test it on all possible devices you might have, please leave feedback if something is not working right.
This plugin is also an example of new extended android plugin system and can be used as example for creating other plugins.
If everything works fine, I'll post more detailed tutorial on creating Android plugins
Comments
bad news, I have changed my network Operator right now, your site can not be accessed any more.
https://sites.google.com/site/xraystudiogame
Any way I've also shared code on Github: https://github.com/ar2rsawseen/GiderosFlurryAndroid
And if that does not work also, PM me your email I'll send it to you
Thanks,I have tried your plugin on my nexus s,it works well.
https://sites.google.com/site/xraystudiogame
I've tried your plugin and it force closes my app on launch.
I've followed your instructions on your blog post.
I'm using Gideros 2012.09.9 and Flurry SDK 3.1.0 (the latest, just downloaded)
I'm attaching my LogCat in hopes that you could look at it and help me to solve this.
Thank you.
https://github.com/ar2rsawseen/GiderosFlurryAndroid
But i still have the same problem.
First i tried with the new version on github and did not changing anything else, just replaced the files on lib and src folders.
Then, as i saw that the folders structure had changed, I replaced the externalClasses string with: "com.giderosmobile.android.plugins.flurry.FlurryPlugin"
Btw, i deleted the old Flurry.java in src...
Most probably by the Log it seems that you have not added the Flurry SDK to your project
I've added it, if i remove it the project will not compile and give errors.
I've tried everything, even adding your projects FlurryAgent.jar to mine.
Still have the same errors.
Your project works fine, so that's something wrong with my project.
Any other ideas?
Using your gideros project, i exported it to Eclipse and added Flurry.
The exact same problem happens.
So, i'm attaching the project. Could you please look at it?
Thank you!
I'll put more specific instruction in installation description
Likes: hugocosta
That was it. It's working now. Thank you!
I believe it would be important to add this step to the usage instructions, so that other Android newbies like me don't have to spend hours around this tiny mistake.
Likes: SinisterSoft, bravcm
We have an error with your flurry plugin with Gideros new version 2014.01 at start, is possible than we need the x86 version?
Thank you
iPhone? https://itunes.apple.com/us/app/save-my-toys/id593292899?l=en&ls=1&mt=8
Andoid? https://play.google.com/store/apps/details?id=cat.acb.savemytoys
iPhone? https://itunes.apple.com/us/app/save-my-toys/id593292899?l=en&ls=1&mt=8
Andoid? https://play.google.com/store/apps/details?id=cat.acb.savemytoys
Likes: achimeno
iPhone? https://itunes.apple.com/us/app/save-my-toys/id593292899?l=en&ls=1&mt=8
Andoid? https://play.google.com/store/apps/details?id=cat.acb.savemytoys
Now the call with parameters crash my app.
flurry.logEvent("myEvent2", {key="value"})
iPhone? https://itunes.apple.com/us/app/save-my-toys/id593292899?l=en&ls=1&mt=8
Andoid? https://play.google.com/store/apps/details?id=cat.acb.savemytoys
And here is a test code I use:
http://appcodingeasy.com/FlurryTest.zip
Note: flurry.isAvailable() and flurry.startSession(appID) work fine.
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova
Error: JNI ERROR (app bug): attempt to use stale local reference 0x3af0000d
Will continue investigating and will update here.
Question: It seems like the stale reference error comes up when referencing java objects via static variables. (Excuse any particular mistakes in what I said I'm not a C programmer )
http://stackoverflow.com/questions/14765776/jni-error-app-bug-accessed-stale-local-reference-0xbc00021-index-8-in-a-tabl
However there are no static vars in that file...
UPDATE: Narrowed problem down to a JNI call on line 29 of gflurry-android.cpp
"env->CallObjectMethod(jmapobj, env->GetMethodID(cls, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"), jKey, jVal);"
- Same error message as i said above. Will try my best for a solution but my JNI knowledge is very limited...
(Android 4.4 on Nexus 5)
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova
Probably memory management is significantly different (more aggressive).
Unfortunately I don't have such device at my disposal, thus borrowed from a friend, will retest your fix
Likes: duke2017
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova
Flurry now looks like an ad platform - should it not be in that instead - with 'extensions' for the extra flurry bits?
https://deluxepixel.com
Well when you download the Flurry SDK it has many folders, for ads, etc. And one of them is Analytics, so I use only that, without any ads.
Additionally you can have restricted version, provided on their site, which again limits flurry sdk even more