[android-developers] Re: Popping up Toast (or something like it) from a thread

2010-08-29 Thread Droid
Are you using a message handler? they are better than spinning a naked
thread.
You may be blocking the UI thread or similar unwanted consequence.
There is loads of code around but I can put some here if you want
about
message handlers in threads.

On Aug 28, 10:45 pm, Bret Foreman bret.fore...@gmail.com wrote:
 My user hits a button and kicks off a process that takes 3 steps in
 about 10 seconds total. I'd like to pop up Toast messages Step 1,
 Step 2, Step 3, Finished! as the process progresses. I'm using
 the standard Java Thread interface to run the process in a thread and
 I've found that trying to pop up Toast from the thread causes an FC.
 What is the best way to report this kind of progress - step by step
 messages?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Popping up Toast (or something like it) from a thread

2010-08-28 Thread Bret Foreman
Brilliant! This is exactly what I was looking for.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en