you must stop the progress by dialog by dismissdialog() and from your thread you must use handler to start an activity
the right way to start any UI tasks in the thread is by using handlers On Tue, Feb 24, 2009 at 5:46 AM, Rohit <mord...@gmail.com> wrote: > > There is an activity that shows a progress dialog and starts a new > thread to do some work. One method that is called from this thread > starts a new activity. > > i.e. ThreadX has a run() method that calls y.foo(). y.foo() starts a > new activity with teh flag Intent.FLAG_ACTIVITY_NEW_TASK > > When I run this - I see the progress dialog but I dont see the new > activity starting up from within the thread. All the context > information is present to the thread. > > Thanks > Rohit > > > -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---