C coder22 Member Licensed User Longtime User Apr 25, 2013 #1 I know it's recommended to have a service show a notification which can then launch an activity. But is it possible to have a service launch an activity directly? I want the service to make a panel show that has buttons on it. Thanks! :sign0104:
I know it's recommended to have a service show a notification which can then launch an activity. But is it possible to have a service launch an activity directly? I want the service to make a panel show that has buttons on it. Thanks! :sign0104:
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2013 #2 Yes. Just call StartActivity(...). Upvote 0
C coder22 Member Licensed User Longtime User Apr 27, 2013 #3 Would CallSubDelayed be a good option too? Thanks for your great support Erel! Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 28, 2013 #4 It depends. CallSubDelayed will only start the activity if there is another activity (of your app) visible. Otherwise the message will wait for the activity to be started. Upvote 0
It depends. CallSubDelayed will only start the activity if there is another activity (of your app) visible. Otherwise the message will wait for the activity to be started.