Y ykucuk Well-Known Member Licensed User Longtime User Dec 3, 2018 #1 Hi, I run another app with intent. How can i go back my app's main activity after X seconds? thank you
Hi, I run another app with intent. How can i go back my app's main activity after X seconds? thank you
Y ykucuk Well-Known Member Licensed User Longtime User Dec 3, 2018 #2 i call back with. B4X: Sub Service_Start (StartingIntent As Intent) is there a better way for Android devices before 8.0? Upvote 0
i call back with. B4X: Sub Service_Start (StartingIntent As Intent) is there a better way for Android devices before 8.0?
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2018 #3 The Android version doesn't matter. You need to call StartActivity from a service. The most reliable way to do it is to make a service (not the starter service) a foreground service, sleep for X seconds, call StartActivity and Service.StopForeground (after a second or two). Upvote 0
The Android version doesn't matter. You need to call StartActivity from a service. The most reliable way to do it is to make a service (not the starter service) a foreground service, sleep for X seconds, call StartActivity and Service.StopForeground (after a second or two).