Try this: http://developer.android.com/intl/de/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29
On Jul 17, 6:33 am, Ajmer singh <[email protected]> wrote: > Hi > > I have started a service that works in background and i need to show a > dialog box containing "Yes" and "No" buttons.But when i try to show the > Dialog box from service it give me below exception and not even show dialog > box. > *"Exception is here.java.lang.RuntimeException: Can't create handler inside > thread that has not called Looper.prepare()" > * > Please help how can i do this. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

