Note that there are some explanatory texts on larger screens.

plurals
  1. POForce close with in app billing function
    primarykey
    data
    text
    <p>I have uploaded my app to Google Play, after few updates I'm getting error like this</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wipeout.simplegame/com.wipeout.simplegame.MainMenu}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667) at android.app.ActivityThread.access$1500(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at com.wipeout.simplegame.screen.MainMenu.onCreate(MainMenu.java:238) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615) ... 11 more </code></pre> <p>Here is my MainMenu.java</p> <pre><code>private ImageView advertButton; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_menu); advertButton = (ImageView) findViewById(R.id.advertOffButton); advertButton.setOnClickListener(new OnClickListener() { //line 238 @Override public void onClick(View v) { if (mHelper != null) { mHelper.flagEndAsync(); try { mHelper.launchPurchaseFlow(MainMenu.this, SKU_PREMIUM, RC_REQUEST, mPurchaseFinishedListener, ""); } catch (IllegalStateException ex) { } } } }); } </code></pre> <p>I set <code>flagEndAsync()</code> to the public in IabHelper, because I saw that helps somebody, but my problem still exist. Whole code in app billing I copied from Google developer site, so I don't know where is the problem. For me and few test accounts everything works great, but some people have problems with it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload