In collaboration with
http://heyzap.com here is a plugin for whole Heyzap combo:
https://github.com/ar2rsawseen/GiderosHeyzapHeyzap offers a great combo of leaderboard and achievement management (even between apps). Additionally it also provides Ads and a way to checkin your app with options to posting to Twitter and Facebook. Thats all for both Android and IOS platforms.
And now available to Gideros.
Comments
Dislikes: bali001
Likes: hgvyas123
Likes: hgvyas123, SinisterSoft
06-14 00:28:12.142: D/HeyzapSDK(644): Heyzap Ad Manager started.
06-14 00:28:12.182: D/AndroidRuntime(644): Shutting down VM
06-14 00:28:12.182: W/dalvikvm(644): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
06-14 00:28:12.232: E/AndroidRuntime(644): FATAL EXCEPTION: main
06-14 00:28:12.232: E/AndroidRuntime(644): java.lang.NullPointerException
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.Manager.(Manager.java:41)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.Manager.getInstance(Manager.java:164)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.AdUnit.shouldPrefetch(AdUnit.java:342)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.AdUnit.(AdUnit.java:110)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.InterstitialAdUnit.(InterstitialAdUnit.java:13)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.InterstitialOverlay.(InterstitialOverlay.java:92)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.InterstitialOverlay.load(InterstitialOverlay.java:539)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.InterstitialOverlay.load(InterstitialOverlay.java:534)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.heyzap.sdk.ads.InterstitialOverlay$10.run(InterstitialOverlay.java:494)
06-14 00:28:12.232: E/AndroidRuntime(644): at android.os.Handler.handleCallback(Handler.java:605)
06-14 00:28:12.232: E/AndroidRuntime(644): at android.os.Handler.dispatchMessage(Handler.java:92)
06-14 00:28:12.232: E/AndroidRuntime(644): at android.os.Looper.loop(Looper.java:137)
06-14 00:28:12.232: E/AndroidRuntime(644): at android.app.ActivityThread.main(ActivityThread.java:4424)
06-14 00:28:12.232: E/AndroidRuntime(644): at java.lang.reflect.Method.invokeNative(Native Method)
06-14 00:28:12.232: E/AndroidRuntime(644): at java.lang.reflect.Method.invoke(Method.java:511)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
06-14 00:28:12.232: E/AndroidRuntime(644): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
06-14 00:28:12.232: E/AndroidRuntime(644): at dalvik.system.NativeStart.main(Native Method)
I'm just want to show interstatial on start
require "heyzap"
heyzap:addEventListener(Event.AD_RECEIVED, function()
print("AD_RECEIVED")
end)
heyzap:addEventListener(Event.AD_FAILED, function(e)
print("AD_FAILED", e.error)
end)
heyzap:addEventListener(Event.AD_ACTION_BEGIN, function()
print("AD_ACTION_BEGIN")
end)
heyzap:addEventListener(Event.AD_DISMISSED, function()
print("AD_DISMISSED")
end)
heyzap:showAd("interstitial")
I was going to ask a similar question when calling either Googlebilling or storekit. I'm gathering you all code for both ios and android in the same deployment.
http://artleeapps.com/
Bubble Adventure - Colors
That would be great as you could have a "purchase" to remove the ads!
And this would handle Facebook Login/Authorisation/Posts from within the app (that would be excellent) i was looking at the Facebook API as that was the next thing i was going to try out.
http://artleeapps.com/
Bubble Adventure - Colors
Games: Android
For Android you firstly need to call
1) initialize plugin
2) true - tells that you will be using ads, so it loads additional stuff
For IOS you would also need to specify appId (which would be ignored by Android) like this:
Likes: fxone
http://artleeapps.com/
Bubble Adventure - Colors
Admob brings me 2,5$ for 1000 requests in this game.
But any how, there are also leaderboards and achievements to provide social engagement
Likes: phongtt
Likes: hgvyas123
Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1312]: 94 cannot locate 'gevent_RemoveEventsWithGid'...
It seems the library libheyzap.so can not be loaded, may be a new HeyZap SDK version?
I have tried to compile libkeyzap.so using ndk-build and Android.mk but I found an error in cpp files.
Thanks in advance.
can you post the full logcat output please
and I'll check if there were changes in HeyzapSDK
Must I copy header files into Android project? I assume only libheyzap.so is needed.
I am using Gideros 2012.09.10 and HeyZap SDK 5.5.1
So I used ndk-build from GiderosHeyZap/AndroidPlugin/jni folder I get some errors in compilation:
SharedLibrary : libheyzap.so
/home/jdbc/source/gideros/GiderosHeyzap/AndroidPlugin/obj/local/armeabi/objs/heyzap/heyzap.o: In function `GHeyzap::callback(int, void*)':
/home/jdbc/source/gideros/GiderosHeyzap/AndroidPlugin/jni/heyzap.cpp:176: undefined reference to `gevent_CallbackList::dispatchEvent(int, void*)'
/home/jdbc/source/gideros/GiderosHeyzap/AndroidPlugin/obj/local/armeabi/objs/heyzap/heyzap.o: In function `GHeyzap::onAdReceived()':
/home/jdbc/source/gideros/GiderosHeyzap/AndroidPlugin/jni/heyzap.cpp:132: undefined reference to `gevent_EnqueueEvent'
https://play.google.com/store/apps/developer?id=My+name+is+Originality
What version of Gideros must I used? I am using 2012.9.10
I have tested with libgideros.so of Gideros 2012.09.9 and it works!!
It should have worked with both version, but yes @hgvyas123 is right, better only copy libheyzap.so and always use libgideros.so which was exported with project
Because if libgideros.so has other version than gideros.jar it may have some internal conflict like this