Stucked in some things (admob, facebook, twitter) in Android


#1

Hi, I just ported my game to Android and I still have few things I don’t figure out how to implement, I’ve tried a lot of ways but there are not updated or they don’t work :frowning:

I just only need to do

  • Post scores to facebook and twitter
  • Post share the game in facebook and twitter
  • Admob

Thats all, I don’t know how to implement it, I don’t know how to implement ezi social plugin

Thank you


#2

Hello,

For facebook/twitter, you have this: http://www.ezibyte.com

For admob, you have to write a c++ wrapper that communicates with java by using JNI


#3

Jesus Bosch wrote:

Hello,
>
For facebook/twitter, you have this: http://www.ezibyte.com
>
For admob, you have to write a c++ wrapper that communicates with java by using JNI

Yep, thats what i said that I don’t know how to use the plugin to just post scores

For admob, I don’t know that, I don’t know how to do that…
The things that I tried made my app crash


#4

Carlos Bermudez de Castro wrote:

Jesus Bosch wrote:
> Hello,
>
> For facebook/twitter, you have this: http://www.ezibyte.com
>
> For admob, you have to write a c++ wrapper that communicates with java by using JNI
>
Yep, thats what i said that I don’t know how to use the plugin to just post scores
>
For admob, I don’t know that, I don’t know how to do that…
The things that I tried made my app crash

I figured out how to implement ezibyte but when I try to post something, it says

Invalid Package Name

Please use package name as per licence or use com.test.* if you are testing features. Replace * with your project name

And where should i change it or what should I do?


#5

there is a support email in their website…


#6

Jesus Bosch wrote:

there is a support email in their website…

I contacted them , I’ll wait

I still have the problem of the admob that I don’t know how to integrate it. All of the tutorials are deprecated :frowning:

I’m trying to use this: http://rastergrid.com/blog/2013/03/admob-extension-for-cocos2d-x-android/

But I get this crashes:

08-05 07:19:17.563: W/dalvikvm(3762): No implementation found for native Les/rks/paperage/AdMobHelper;.initJNI (Ljava/lang/Object;)V
08-05 07:19:17.564: D/AndroidRuntime(3762): Shutting down VM
08-05 07:19:17.564: W/dalvikvm(3762): threadid=1: thread exiting with uncaught exception (group=0x40d56258)
08-05 07:19:17.566: E/AndroidRuntime(3762): FATAL EXCEPTION: main
08-05 07:19:17.566: E/AndroidRuntime(3762): java.lang.UnsatisfiedLinkError: initJNI
08-05 07:19:17.566: E/AndroidRuntime(3762): at es.rks.paperage.AdMobHelper.initJNI(Native Method)
08-05 07:19:17.566: E/AndroidRuntime(3762): at es.rks.paperage.AdMobHelper.(AdMobHelper.java:131)
08-05 07:19:17.566: E/AndroidRuntime(3762): at es.rks.paperage.PaperAgeAndroid.onCreate(PaperAgeAndroid.java:46)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.app.Activity.performCreate(Activity.java:4479)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2041)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.app.ActivityThread.access$600(ActivityThread.java:134)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.os.Handler.dispatchMessage(Handler.java:99)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.os.Looper.loop(Looper.java:154)
08-05 07:19:17.566: E/AndroidRuntime(3762): at android.app.ActivityThread.main(ActivityThread.java:4624)
08-05 07:19:17.566: E/AndroidRuntime(3762): at java.lang.reflect.Method.invokeNative(Native Method)
08-05 07:19:17.566: E/AndroidRuntime(3762): at java.lang.reflect.Method.invoke(Method.java:511)
08-05 07:19:17.566: E/AndroidRuntime(3762): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
08-05 07:19:17.566: E/AndroidRuntime(3762): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
08-05 07:19:17.566: E/AndroidRuntime(3762): at dalvik.system.NativeStart.main(Native Method)