roderiko4
Member
Hello, I'm new to this community and I need help to solve this problem...
I'm making an app for an specific purpose and for that I made the app an kiosk app. I needed the app to be able to receive phone calls normally so I made it so the app unlock itself when it received a phone call. For some weird reason when the device gets a phone call while locked, the entire device stops responding and after a while it reboots itself.
Here's the error message :
I'm making an app for an specific purpose and for that I made the app an kiosk app. I needed the app to be able to receive phone calls normally so I made it so the app unlock itself when it received a phone call. For some weird reason when the device gets a phone call while locked, the entire device stops responding and after a while it reboots itself.
phone call unlock code:
Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent)
Select State
Case "IDLE" ' Idle state.
Case "RINGING" ' Ringing state.
Log("sono sono sono")
If IsPaused (Main) = False Then
CallSubDelayed(Main,"Unlock")
End If
End Select
unlock sub from main activity:
Sub Unlock
GetContext.RunMethod("stopLockTask", Null)
WriteLockState(False)
End Sub
Here's the error message :
error message:
java.lang.RuntimeException: android.os.DeadSystemException
at android.os.PowerManager$WakeLock.release(PowerManager.java:2236)
at android.os.PowerManager$WakeLock$1.run(PowerManager.java:2097)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7405)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:502)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
Caused by: android.os.DeadSystemException
... 9 more