cocos2d for android, based on cocos2d-android-0.82, and now ported from cocos2d-iphone 0.99.4. The googlecode address is here: http://code.google.com/p/cocos2d-android-1/ . There are several demos to watch.
I am getting reports from users for my application using the latest version
Here is the error report:-
java.lang.RuntimeException: Unable to destroy activity {com.mypackage.myactivity}: java.lang.NullPointerException
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3661)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3679)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3795)
at android.app.ActivityThread.access$2400(ActivityThread.java:126)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2042)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4633)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.webkit.WebView.requestFocus(WebView.java:7410)
at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073)
at android.view.ViewGroup.requestFocus(ViewGroup.java:1029)
at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073)
at android.view.ViewGroup.requestFocus(ViewGroup.java:1029)
at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073)
at android.view.ViewGroup.requestFocus(ViewGroup.java:1029)
at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073)
at android.view.ViewGroup.requestFocus(ViewGroup.java:1029)
at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073)
at android.view.ViewGroup.requestFocus(ViewGroup.java:1029)
at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073)
at android.view.ViewGroup.requestFocus(ViewGroup.java:1032)
at android.view.View.requestFocus(View.java:3556)
at android.view.ViewRoot.clearChildFocus(ViewRoot.java:1586)
at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508)
at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508)
at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508)
at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508)
at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2207)
at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2181)
at android.view.ViewGroup.removeView(ViewGroup.java:2129)
at org.cocos2d.config.ccMacros.CC_DIRECTOR_END(ccMacros.java:161)
at com.mypackage.myactivity.onDestroy(myactivity.java:434)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3648)
I am getting reports from users for my application using the latest version
Here is the error report:- java.lang.RuntimeException: Unable to destroy activity {com.mypackage.myactivity}: java.lang.NullPointerException at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3661) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3679) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3795) at android.app.ActivityThread.access$2400(ActivityThread.java:126) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2042) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4633) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at android.webkit.WebView.requestFocus(WebView.java:7410) at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) at android.view.ViewGroup.requestFocus(ViewGroup.java:1029) at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:1073) at android.view.ViewGroup.requestFocus(ViewGroup.java:1032) at android.view.View.requestFocus(View.java:3556) at android.view.ViewRoot.clearChildFocus(ViewRoot.java:1586) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) at android.view.ViewGroup.clearChildFocus(ViewGroup.java:508) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2207) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:2181) at android.view.ViewGroup.removeView(ViewGroup.java:2129) at org.cocos2d.config.ccMacros.CC_DIRECTOR_END(ccMacros.java:161) at com.mypackage.myactivity.onDestroy(myactivity.java:434) at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3648)
here is the code which i am using to destroy:
@Override public void onDestroy() {
Kindly help