[android-developers] Re: AsyncTask and passing message back to UI Thread

2010-03-10 Thread John Wesonga
:08 am, John Wesonga johnweso...@gmail.com wrote: I figured something out which I thought would work, within my LoginTask class I created an object which was of the parent activity: Test101 mParentActivity; and then: protected void onPostExecute(String result) {        Intent i=new

[android-developers] Re: AsyncTask and passing message back to UI Thread

2010-03-08 Thread John Wesonga
is a context object. I understand now that you can't call methods from the UI thread in the AsyncTask. On Mar 7, 1:08 am, John Wesonga johnweso...@gmail.com wrote: I figured something out which I thought would work, within my LoginTask class I created an object which was of the parent activity: Test101

[android-developers] Re: AsyncTask and passing message back to UI Thread

2010-03-07 Thread John Wesonga
/AndroidRuntime(801): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 03-07 01:04:50.319: ERROR/AndroidRuntime(801): at dalvik.system.NativeStart.main(Native Method) Stuck again it seems.. On Mar 6, 10:57 pm, John Wesonga johnweso...@gmail.com wrote: I just modified my onPostExecute

[android-developers] AsyncTask and passing message back to UI Thread

2010-03-06 Thread John Wesonga
I have a simple app and I'm using the AsyncTask to test out a background process, for clearness purposes I've opted to put my AsyncTask in a separate class rather than in an inner class, which where my problems begin, this is my AsyncTask package org.tutorial.test101.tasks; import

[android-developers] Re: AsyncTask and passing message back to UI Thread

2010-03-06 Thread John Wesonga
thread so you can use this method to start an Activity. It's pretty much what it's for. On Fri, Mar 5, 2010 at 6:29 AM, John Wesonga johnweso...@gmail.com wrote: I have a simple app and I'm using the AsyncTask to test out a background process, for clearness purposes I've opted to put my