J jchal Active Member Licensed User Longtime User Mar 28, 2016 #1 what is the comand to send an app in background? for example if i press a button in the app it will be sened in background
what is the comand to send an app in background? for example if i press a button in the app it will be sened in background
mangojack Expert Licensed User Longtime User Mar 29, 2016 #2 You can use Activity.Finish. If your app has a single Activity is is similar to the user pressing the back button. see chapter 9.10 of the beginners guide. https://www.b4x.com/android/forum/threads/b4a-beginners-guide.9578/ Upvote 0
You can use Activity.Finish. If your app has a single Activity is is similar to the user pressing the back button. see chapter 9.10 of the beginners guide. https://www.b4x.com/android/forum/threads/b4a-beginners-guide.9578/
J jchal Active Member Licensed User Longtime User Mar 29, 2016 #3 i wanted something like hide app Upvote 0
mangojack Expert Licensed User Longtime User Mar 29, 2016 #4 jchal said: i wanted something like hide app Click to expand... Hang on .. I'll see if Erel can whip something up for you ... Maybe supply some more info .. When you press the button , Why do you want to hide the app ? Do you want to just hide one activity to show another ..? Upvote 0
jchal said: i wanted something like hide app Click to expand... Hang on .. I'll see if Erel can whip something up for you ... Maybe supply some more info .. When you press the button , Why do you want to hide the app ? Do you want to just hide one activity to show another ..?
Erel B4X founder Staff member Licensed User Longtime User Mar 29, 2016 #5 You can send an intent that will cause the home app to appear: https://www.b4x.com/android/forum/threads/progmatically-go-to-home-screen.10607/#post-59079 Upvote 0
You can send an intent that will cause the home app to appear: https://www.b4x.com/android/forum/threads/progmatically-go-to-home-screen.10607/#post-59079
J jchal Active Member Licensed User Longtime User Mar 29, 2016 #6 well it is not this the case. what i wanted to do is to press a button and then to move the app in background, and the user will be able to see the rest of the app and run a new app if he wishes, the app will run and you are going to be able to see it in background. i am doing this at the moment by pressing the midle button (home) of me mobile phone. but i wanted to do it imediatly fro m the app. sorry if i miss lead you Upvote 0
well it is not this the case. what i wanted to do is to press a button and then to move the app in background, and the user will be able to see the rest of the app and run a new app if he wishes, the app will run and you are going to be able to see it in background. i am doing this at the moment by pressing the midle button (home) of me mobile phone. but i wanted to do it imediatly fro m the app. sorry if i miss lead you
DonManfred Expert Licensed User Longtime User Mar 29, 2016 #7 jchal said: but i wanted to do it imediatly fro m the app. Click to expand... That´s exactly the code Erel provided! Why you don´t take the suggestion? Upvote 0
jchal said: but i wanted to do it imediatly fro m the app. Click to expand... That´s exactly the code Erel provided! Why you don´t take the suggestion?
J jchal Active Member Licensed User Longtime User Mar 29, 2016 #8 yes this is it Code: Dim i AsIntent i.Initialize(i.ACTION_MAIN, "") i.AddCategory("android.intent.category.HOME") i.Flags = 0x10000000StartActivity(i) thanks a lot Upvote 0
yes this is it Code: Dim i AsIntent i.Initialize(i.ACTION_MAIN, "") i.AddCategory("android.intent.category.HOME") i.Flags = 0x10000000StartActivity(i) thanks a lot