当我要求购买时,我面临两个问题,并给出例外
04-30 13:28:58.665: E/AndroidRuntime(5830): java.lang.RuntimeException: Unable to start service com.m3tech.kidapp.BillingService@41bc1cb8 with Intent { act=com.android.vending.billing.RESPONSE_CODE cmp=xxxx (has extras) }: java.lang.NullPointerException
第二个问题是当我点击“购买”按钮时出现相同的错误,并在此应用程序崩溃之前为另一个弹出窗口加注星标。
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2387)
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.app.ActivityThread.access$1900(ActivityThread.java:127)
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1221)
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.os.Handler.dispatchMessage(Handler.java:99)
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.os.Looper.loop(Looper.java:137)
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.app.ActivityThread.main(ActivityThread.java:4511)
04-30 14:37:46.450: E/AndroidRuntime(15854): at java.lang.reflect.Method.invokeNative(Native Method)
04-30 14:37:46.450: E/AndroidRuntime(15854): at java.lang.reflect.Method.invoke(Method.java:511)
04-30 14:37:46.450: E/AndroidRuntime(15854): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
04-30 14:37:46.450: E/AndroidRuntime(15854): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
04-30 14:37:46.450: E/AndroidRuntime(15854): at dalvik.system.NativeStart.main(Native Method)
04-30 14:37:46.450: E/AndroidRuntime(15854): Caused by: java.lang.NullPointerException
04-30 14:37:46.450: E/AndroidRuntime(15854): at com.m3tech.dungeons.BillingService.handleCommand(BillingService.java:431)
04-30 14:37:46.450: E/AndroidRuntime(15854): at com.m3tech.dungeons.BillingService.onStart(BillingService.java:421)
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.app.Service.onStartCommand(Service.java:438)
04-30 14:37:46.450: E/AndroidRuntime(15854): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2370)
04-30 14:37:46.450: E/AndroidRuntime(15854): ... 10 more