I'm trying to have my IntentService show a Toast message, but when sending it from the onHandleIntent message, the toast shows but gets stuck and the screen and never leaved. I'm guessing its because the onHandleIntent method does not happen on the main service thread, but how can I move it?
Has anyone has this issue and solved it?
Use the Handle to post a Runnable which content your operation
Here is the full IntentService Class code demonstrating Toasts that helped me:
in
onCreate()
initialize aHandler
and then post to it from your thread.