Sunday, 15 August 2010

google play services - Android: BaseGameActivity, launch failed -



google play services - Android: BaseGameActivity, launch failed -

so read forum long time , can find reply problems. unusual , don't know should do.

so create app want utilize google achievment. have business relationship on google, create achievement there. add together app gamebaseutils library , gamebaseutils google-play-services-lib, too. wanna add together achievment code. go android development site instruction. when alter

public class home extends activity

to

public class home extends basegameactivity

i cannot launch app. (aha - alter in basegameactivities extends activity not fragment because dont utilize it)

this log:

10-17 01:32:49.800: w/dalvikvm(19501): threadid=1: thread exiting uncaught exception (group=0x430d4140) 10-17 01:32:49.800: e/androidruntime(19501): fatal exception: main 10-17 01:32:49.800: e/androidruntime(19501): process: com.oxygenum.wroclawtesty44, pid: 19501 10-17 01:32:49.800: e/androidruntime(19501): java.lang.illegalstateexception: fatal developer error has occurred. check logs farther information. 10-17 01:32:49.800: e/androidruntime(19501): @ com.google.android.gms.internal.hb$h.b(unknown source) 10-17 01:32:49.800: e/androidruntime(19501): @ com.google.android.gms.internal.hb$h.d(unknown source) 10-17 01:32:49.800: e/androidruntime(19501): @ com.google.android.gms.internal.hb$b.fv(unknown source) 10-17 01:32:49.800: e/androidruntime(19501): @ com.google.android.gms.internal.hb$a.handlemessage(unknown source) 10-17 01:32:49.800: e/androidruntime(19501): @ android.os.handler.dispatchmessage(handler.java:102) 10-17 01:32:49.800: e/androidruntime(19501): @ android.os.looper.loop(looper.java:149) 10-17 01:32:49.800: e/androidruntime(19501): @ android.app.activitythread.main(activitythread.java:5257) 10-17 01:32:49.800: e/androidruntime(19501): @ java.lang.reflect.method.invokenative(native method) 10-17 01:32:49.800: e/androidruntime(19501): @ java.lang.reflect.method.invoke(method.java:515) 10-17 01:32:49.800: e/androidruntime(19501): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:817) 10-17 01:32:49.800: e/androidruntime(19501): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:633) 10-17 01:32:49.800: e/androidruntime(19501): @ dalvik.system.nativestart.main(native method) 10-17 01:32:53.030: i/process(19501): sending signal. pid: 19501 sig: 9

maybe wrong - how can utilize achievment if cannot utilize basegameactvities user dont log google.

the way accomplish implement gamehelper in main activity. there no requirement utilize fragments if not want to.

you setup gamehelper in fragment activity , phone call main activity.

in order pointer google connection, utilize googleapiclient(). if mhelper gamehelper object , defined statically in fragment activity, can phone call using mhelper.googleapiclient().

this can used add together achievements , scores in leaderboards.

android google-play-services

No comments:

Post a Comment