Android Question Message box failure

Baris Karadeniz

Active Member
Licensed User
When the message box is open at the screen and apps goes to the pause with the user or system, there happens a failure. Line 513 is an Activity_Pause Sub and there is nothing at the Activity_Pause Sub. How can I solve this? Should I need to close message box when the app is paused? If it is necessary how can I close the message box?

B4X:
Sub Activity_Pause (UserClosed As Boolean)
   
End Sub


Installing file.
PackageAdded: package:app.taksim.driver
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (starter) Destroy **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Service (starter) Create **
** Service (starter) Start **
** Service (httputils2service) Create **
** Service (httputils2service) Start **
** Service (httputils2service) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Activity (main) Pause, UserClosed = false **
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Activity (main) Resume **
** Service (starter) Start **
JobName = Job2, Success = true
0
JobName = MyJob, Success = true
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Destroy **
** Service (starter) Create **
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
90
[Height=720, IsInitialized=false, Width=960
]
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
90
[Height=720, IsInitialized=false, Width=960
]
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
JobName = MyJob, Success = true
JobName = Job2, Success = true
0
** Service (starter) Start **
** Service (starter) Destroy **
** Service (starter) Create **
** Service (starter) Start **
** Service (starter) Destroy **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
Error occurred on line: 513 (Main)
java.lang.NullPointerException
at app.taksim.driver.main._activity_pause(main.java:951)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:702)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:336)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.ShellBA$2.run(ShellBA.java:115)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
 
Top