This code is supposed to use a service to show a toast message. There are no errors, but it doesn\'t show the toast.
main activity
public class Main
Try this:
Handler handler = new Handler(Looper.getMainLooper()); handler.post(new Runnable() { @Override public void run() { Toast.makeText(YourService.this.getApplicationContext(),"My Awesome service toast...",Toast.LENGTH_SHORT).show(); } });