Thanx Mark for your quick reply. I will try it out and get back

On Apr 6, 6:49 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> Asif k wrote:
> >    But in my case, I am getting all 3 messages at a time after
> > activity execution completed.
>
> That is probably because you are doing long-running work on the UI thread.
>
> > Is there any API available, using which
> > I can show the status during the execution also.
>
> Anything long-running should be in a background thread, in the activity
> or wrapped in a service. Then, use Handler or runOnUiThread() or
> something so the background thread can have the UI thread update your
> TextView.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to