Hi,
I am trying to disable recent apps dialog (usually open by long-pressing the home key) using the the following code:
However, this is giving me a java.lang.NullPointerException error when the window loses focus.
Where is the error I've committed?
Thanks.
I am trying to disable recent apps dialog (usually open by long-pressing the home key) using the the following code:
B4X:
Sub Activity_WindowFocusChanged(Focused As Boolean)
dim myPhone as Phone
If Not(Focused) Then
Dim i As Intent
i.Initialize("android.intent.action.CLOSE_SYSTEM_DIALOGS", "")
myPhone.SendBroadcastIntent(i)
End If
End Sub
However, this is giving me a java.lang.NullPointerException error when the window loses focus.
Where is the error I've committed?
Thanks.