Ah, I can't believe I did that. Sorry about that and thanks for your
advice. The error was that eclipse kept telling me I was providing the
wrong context. And, that the method with such a signature didn't
exist. It wouldn't let me even compile the code (let alone run it).
Somehow the same code works now without any changes. Although, I added
the other activity to my manifest file so maybe that was the issue.

I will take a look at the other methods you suggested.

- Moazzam

On Jul 24, 6:42 am, Mark Murphy <mmur...@commonsware.com> wrote:
> moazzamk wrote:
> > I have a function in my activity that starts a new thread and that
> > threads send a message back to an event handler. I need to start an
> > activity after that thread finishes. How can I do that. I keep getting
> > an error when I try to do this :
>
> If you don't tell us the error, it is difficult to help you.
>
> For your scenario, consider using AsyncTask rather than your own
> Handler. You can start your activity in onPostExecute(), update your
> original activity in onPublishProgress(), etc.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to