UPDATE: I don\'t agree that this is a duplicate - because I am seeking for a way to exit the main app and still show a Toast from the service.
In a
use the following code:
runOnUiThread(new Runnable(){ public void run() { // UI code goes here } });