1

how to return data from AsyncTask to main thread

view story
linux-howto

http://stackoverflow.com – I want to return the Jsonobject to main thread. But when i tried to run the code it returns the following error. 02-06 06:14:36.490: E/AndroidRuntime(769): FATAL EXCEPTION: main 02-06 06:14:36.490: E/AndroidRuntime(769): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dataread/com.example.dataread.MainActivity}: java.lang.NullPointerException 02-06 06:14:36.490: E/AndroidRuntime(769): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) 02-06 06:14:36.490: E/AndroidRuntime(769): at android.app.ActivityThread.handleLaunchActivity(Activi (HowTos)