Currently, I am in a background service which needs to start an activity ( alert dialog) and wait till the user click's OK or Cancel. I am creating a new Intent with my Alert Box activity and start it using the startActivity method.
I see that, the activity gets triggered only the execution flow of Service is complete. I get the Alert Dialog box after the service complete's its execution.
Can anyone help me to how to wait and retrieve the user input from the started activity. Please note that this works when I start the activity from another activity.
I am having problems waiting, when I have to start and wait from a non-activity class (e.g. service)
Thanks in Advance..