hi , i have debuged the code, input stream is null, unable to connect the server.
the same code is woking fine in java . i have given network permissions too. <uses-permission android:name=*"android.permission.ACCESS_NETWORK_STATE"*></ uses-permission> <uses-permission android:name=*"android.permission.CHANGE_NETWORK_STATE"*></ uses-permission> can we upload the files through HTTP. is HTTP Client able to upload the file to public server. Thanks in advance.... regards Sneha. On Sat, Mar 26, 2011 at 5:17 AM, Nicholas Johnson <metthejohn...@gmail.com>wrote: > I believe the first error that is causing your program to crash is located > here: > > 03-25 10:33:36.980: ERROR/AndroidRuntime(301): java.lang.NullPointerException > 03-25 10:33:36.980: ERROR/AndroidRuntime(301): at > com.example.uplaod.MyUpload$1.upload(MyUpload.java:146) > > > Check out line 146 in MyUpload. Set a breakpoint just before it, run your > program in Debug mode, and figure out why you're trying to access a Null > pointer. > > --Nick > > -- > 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 > -- 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