Robert Valentino Well-Known Member Licensed User Longtime User Aug 28, 2016 #1 I tried this code from 2011: https://www.b4x.com/android/forum/threads/progmatically-go-to-home-screen.10607/#post-447098 Code: Dim i As Intent i.Initialize(i.ACTION_MAIN, "") i.AddCategory("android.intent.category.HOME") i.Flags = 0x10000000 StartActivity(i) Tried this code and it kind of works. If there are multiple pages to the home screen sometimes it returns to the second page. Is there a way to force it to the first page / main page? BobVal
I tried this code from 2011: https://www.b4x.com/android/forum/threads/progmatically-go-to-home-screen.10607/#post-447098 Code: Dim i As Intent i.Initialize(i.ACTION_MAIN, "") i.AddCategory("android.intent.category.HOME") i.Flags = 0x10000000 StartActivity(i) Tried this code and it kind of works. If there are multiple pages to the home screen sometimes it returns to the second page. Is there a way to force it to the first page / main page? BobVal
Erel B4X founder Staff member Licensed User Longtime User Aug 29, 2016 #2 I don't think so. This intent causes the home process to move to the background. You cannot control which page will appear. Upvote 0
I don't think so. This intent causes the home process to move to the background. You cannot control which page will appear.