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
Have two separate apps i'm running depending on what the client purchased. Want to switch between each one via the home screen on android. This was fairly simple under windows. So, attempting to replicate the process on android.