Hello,
New to B4A so I'm attempting to start a program which goes back to androids main screen.
Here's the code in question.
Thanks for all your help
New to B4A so I'm attempting to start a program which goes back to androids main screen.
Here's the code in question.
B4X:
Sub ClickHome
Dim i As Intent
i.Initialize("android.intent.category.HOME","")
i.SetComponent("com.android.launcher/com.android.launcher2.Launcher")
Try
StartActivity(i)
Catch
ToastMessageShow("Home Click Failed", True)
End Try
End Sub
Thanks for all your help