Re: [android-developers] Re: App Crash during HTTP Post

2011-08-19 Thread Mark Murphy
On Fri, Aug 19, 2011 at 1:28 AM, perumal316 perumal...@gmail.com wrote: I am using File Entity to get the file and subsequently do HTTP Post as shown in the code snippet below. HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(postURL); FileEntity bin = new

[android-developers] Re: App Crash during HTTP Post

2011-08-19 Thread Chris Stratton
On Thursday, August 18, 2011 2:30:43 AM UTC-4, perumal316 wrote: I checked the logcat, it is showing: ERROR/AndroidRuntime(10335): FATAL EXCEPTION: main ERROR/AndroidRuntime(10335): java.lang.NullPointerException You need to look through the next series of lines for a Caused by and then

[android-developers] Re: App Crash during HTTP Post

2011-08-19 Thread Chris Stratton
On Thursday, August 18, 2011 2:30:43 AM UTC-4, perumal316 wrote: I checked the logcat, it is showing: ERROR/AndroidRuntime(10335): FATAL EXCEPTION: main ERROR/AndroidRuntime(10335): java.lang.NullPointerException You need to look through the next series of lines for a Caused by after

Re: [android-developers] Re: App Crash during HTTP Post

2011-08-19 Thread Simon Platten
10mb? Have you tried zipping it before posting? Depending on the content you could reduce the data size dramatically Regards,Sy On 19 Aug 2011 21:03, Chris Stratton cs07...@gmail.com wrote: On Thursday, August 18, 2011 2:30:43 AM UTC-4, perumal316 wrote: I checked the logcat, it is

Re: [android-developers] Re: App Crash during HTTP Post

2011-08-19 Thread Miguel Morales
Post the full logcat trace. Make sure you're not doing any network operations in the UI thread. Google 'java multi-part upload' for tips on how to chunk the upload. On Fri, Aug 19, 2011 at 2:26 PM, Simon Platten simonaplat...@googlemail.com wrote: 10mb? Have you tried zipping it before posting? 

[android-developers] Re: App Crash during HTTP Post

2011-08-18 Thread perumal316
Hi Murphy, I checked the logcat, it is showing: ERROR/AndroidRuntime(10335): FATAL EXCEPTION: main ERROR/AndroidRuntime(10335): java.lang.NullPointerException But the issue is, this crash is only occurring when I do HTTP Post of a large file (10 MB). Is it a Android limitation? Anyone

Re: [android-developers] Re: App Crash during HTTP Post

2011-08-18 Thread Mark Murphy
On Thu, Aug 18, 2011 at 2:30 AM, perumal316 perumal...@gmail.com wrote: I checked the logcat, it is showing: ERROR/AndroidRuntime(10335): FATAL EXCEPTION: main ERROR/AndroidRuntime(10335): java.lang.NullPointerException But the issue is, this crash is only occurring when I do HTTP Post of a

[android-developers] Re: App Crash during HTTP Post

2011-08-18 Thread perumal316
Hi Murphy, I am using File Entity to get the file and subsequently do HTTP Post as shown in the code snippet below. HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(postURL); FileEntity bin = new FileEntity(file, postURL); post.setEntity(bin); HttpResponse response =