Saturday, July 17, 2010

[android-developers] Re: Transferring control from Non UI thread to Ui Thread

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 <ajmer.si...@evontech.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate