S Sports90 Member Licensed User Longtime User Sep 27, 2012 #1 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. Code: 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
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. Code: 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
P Penko Active Member Licensed User Longtime User Sep 27, 2012 #2 What is your goal? You can simply close the last Activity which will get you back too ). Sent from my Next7P12 using Tapatalk 2 Upvote 0
What is your goal? You can simply close the last Activity which will get you back too ). Sent from my Next7P12 using Tapatalk 2
S Sports90 Member Licensed User Longtime User Sep 27, 2012 #3 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. Thanks Upvote 0
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. Thanks
Erel B4X founder Staff member Licensed User Longtime User Sep 28, 2012 #4 Why don't you start the other program directly? Upvote 0
S Sports90 Member Licensed User Longtime User Sep 28, 2012 #5 Never actually tought of doing that. Anyways, thanks for all your help. Upvote 0
Harris Expert Licensed User Longtime User Sep 28, 2012 #6 Erel said: Why don't you start the other program directly? Click to expand... We often get so blind-sided by this marvel, we sometimes overlook the bleeding obvious. Thankfully we have you (and many others) to keep us grounded. Upvote 0
Erel said: Why don't you start the other program directly? Click to expand... We often get so blind-sided by this marvel, we sometimes overlook the bleeding obvious. Thankfully we have you (and many others) to keep us grounded.