android - How to make ANE that accesses GooglePlay GameServices -


i develop adobeair app android. so, try make ane(actionscript native extensions)that accesses googleplay gameservices. but, working because of following problem.

[error]

07-22 11:22:44.976: w/bundle(24987): key com.google.android.gms.games.app_id expected string value java.lang.integer.  default value <null> returned. 07-22 11:22:44.991: w/bundle(24987): attempt cast generated internal exception: 07-22 11:22:44.991: w/bundle(24987): java.lang.classcastexception: java.lang.integer cannot cast java.lang.string 07-22 11:22:44.991: w/bundle(24987):    @ android.os.bundle.getstring(bundle.java:1069) 07-22 11:22:44.991: w/bundle(24987):    @ abh.a(sourcefile:137) 07-22 11:22:44.991: w/bundle(24987):    @ ato.a(sourcefile:450) 07-22 11:22:44.991: w/bundle(24987):    @ com.google.android.gms.games.service.gamesintentservice.onhandleintent(sourcefile:2257) 07-22 11:22:44.991: w/bundle(24987):    @ android.app.intentservice$servicehandler.handlemessage(intentservice.java:65) 07-22 11:22:44.991: w/bundle(24987):    @ android.os.handler.dispatchmessage(handler.java:99) 07-22 11:22:44.991: w/bundle(24987):    @ android.os.looper.loop(looper.java:137) 07-22 11:22:44.991: w/bundle(24987):    @ android.os.handlerthread.run(handlerthread.java:60) 

[cause]

  • this error attributes write appid-number directly manifest-file(xxxx-app.xml) of air app. →if develop native-app(java) , refer to「res」folder(res/values/string.xml). but, air app can't read 「res」folder explicitly, have no other choice.(correct?)

ex.)

(xxxx-app.xml) <manifestadditions><![cdata[<manifest>     <application>         <meta-data android:name="com.google.android.gms.games.app_id"                 android:value="123456789012" />          </application> </manifest>]]></manifestadditions> 

any ideas?

you may need add backslash-space @ start of android:value so:

<meta-data android:name="com.google.android.gms.games.app_id"             android:value="\ 123456789012" />  

this because id expected string, entering "123456789012" interpreted integer xml.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -