[Android] Failed to start BasicGame

I am try to start BasicGame Project on my HTC Incredible S S710e(Android 4.0.4). It not work.

Log is here: http://pastebin.com/grfk4nzn

I read your log and in Android normally when you see an exception that states an Activity is leaking a window (Activity com.mycompany.mygame.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40da7750 that was originally added here) it means that you created a dialog window that was never closed. This is usually caused when you move to another Activity. If you can override the onPause() method just add dialog.dismiss(). If you cant override onCreate() then you’ll have to call dialog.dismiss() somewhere before moving on to make sure the dialog is closed.

1 Like