hello experts !!
I am trying to post variables via http push to a php script and it was
working fine with functions in my main activity.java file. but when i
seperated the functions and made a seperate class to keep it organized
it gives nullpointererror .. though i am passing the variables in
similar pattern. The log is like this ...
W/dalvikvm( 682): threadid=3: thread exiting with uncaught exception
(group=0x4001aa28)
E/AndroidRuntime( 682): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 682): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.example.httprequest/
com.example.httprequest.httppostexample}:
java.lang.NullPointerException
E/AndroidRuntime( 682): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
E/AndroidRuntime( 682): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
E/AndroidRuntime( 682): at android.app.ActivityThread.access
$2100(ActivityThread.java:116)
E/AndroidRuntime( 682): at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 682): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 682): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 682): at
android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 682): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 682): at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 682): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 682): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime( 682): at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 682): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 682): at
com.example.httprequest.httppostexample.onCreate(httppostexample.java:
62)
E/AndroidRuntime( 682): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/AndroidRuntime( 682): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2364)
E/AndroidRuntime( 682): ... 11 more
I/Process ( 52): Sending signal. PID: 682 SIG: 3
I/dalvikvm( 682): threadid=7: reacting to signal 3
I/dalvikvm( 682): Wrote stack trace to '/data/anr/traces.txt'
W/ActivityManager( 52): Launch timeout has expired, giving up wake
lock!
plz help me out ... i am a newbie but this seems to me that i am
making some coding error !!
Regards,
wahib
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en