Unfortunately app has stopped

abhishek007p

Active Member
Licensed User
Longtime User
i am getting this crash error. this doesnt happen always, only sometimes, say once out of 20+ tries.

- i touch Menu button on my phone,
- menu is displayed. i choose About
- message box is displayed TWICE and the app crashes.

This is happening across all my apps, which have a smiler menu design.

B4X:
LOG

** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.RuntimeException: MotionEvent { action=ACTION_UP, id[0]=0, x[0]=214.04878, y[0]=183.3122, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=3786853, downTime=3786775, deviceId=1, source=0x1002 } recycled twice!
   at android.view.MotionEvent.recycle(MotionEvent.java:1659)
   at android.view.ViewRootImpl.finishMotionEvent(ViewRootImpl.java:2917)
   at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:2908)
   at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2479)
   at android.view.ViewRootImpl.processInputEvents(ViewRootImpl.java:846)
   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:860)
   at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2455)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:137)
   at android.app.ActivityThread.main(ActivityThread.java:4424)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:817)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
   at dalvik.system.NativeStart.main(Native Method)


B4X:
Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   Activity.LoadLayout("Layout1")

   Activity.AddMenuItem("About", "eAbout")
   Activity.AddMenuItem("Visit Website", "eWeb")
   Activity.AddMenuItem("Exit", "eExit")
End Sub

Sub eAbout_Click
   'Menu > About
   Activity.CloseMenu
   DoEvents
   Msgbox("App 1.1"  & CRLF & "By Company" & CRLF & "Website: www.abhisoft.net", "About")
End Sub
 
Top