I think its a bug in Android Framework. Whenever you are try to make or display a Toast out of Application Main Thread. Mostly possible with IntentService. Always be sure your Toast goes in Application Main Thread.
Look at Below Workaround. This all code goes in your Service.
Handler Declaration.
Handler handler = null;
and in Constructor of your Service
handler = new Handler();
Method to call for display Toast.
public void showToast(String message, Context context){
handler.post(new CustomToast(message, context));
}
CostomToast
private class CustomToast implements Runnable{
String mText;
Context mContext;
public CustomToast(String text, Context context){
mText = text;
mContext = context;
}
public void run(){
Toast.makeText(mContext, mText, Toast.LENGTH_LONG).show();
}