I am creating an activity, then running a service. Then the service waits for the activity to become paused.
Once the activity is paused, the service watches a time queue with times in it... and when a particular time occurs it starts-up the paused activity and shows just a small non-modal panel with information on it. There's a DONE button on that panel.
I would like it to make the activity return back into a paused condition, again, after they have read the text and after they click the DONE button.
Everthing is working fine except... I can't force the activity back into a paused condition. I wish them to continue with whatever they were doing before the timed info panel popped-up.
Can an activity put itself back into paused mode, again (from the Activity, itself)? Or... secondariiy, can my service module somehow pause the activity once they have clicked on the 'done' button?
---
As I see it... the best way would be to create a second activity. This should kick the first activity into the background because two activities can't run at once. Then, after the second activity runs, have it run Activity.Finish. If I start-up the second activity as an invisible activity (already have that mode for the first activity set-up in the manifest) nobody should even see anything happen.
However, how does one start-up a second Activity? Do I add a second Activity with Project->Add New Module->Activity Module - give it a name, then call it from the other activity using StartActivity(SecondActivityName)?