image upload works in emulator but fails on device

You must Login before you can answer or comment on any questions.

Hi, I'm 99.99% done with my app :)! I compiled a final test version for my Droid running Android 2.2 and found that the following code gave me an error on my phone that it wasn't giving me in the emulator?

http://pastie.org/1266004

So, obviously this is paraphrased. The only thing really missing there are title and description textfields. Its a simple app, you select picture from gallery, enter title and description and submit it. This is the error I'm getting:

title: Runtime Error
location: [249,0] app://post.js
message: java.lang.NullPointerException
(app://post.js#249)
line 249 of post.js is

post.open("POST",postQuery);

Any ideas?

— asked 3 years ago by Andrew Scofield
1 Comment
  • Image upload has stumped a lot of people also. Would you mind whittling your code down to the bare essentials to demonstrate a working image upload script, and then sharing (using gist for example).

    I will certainly help you resolve the issue, if I am able to first quickly paste your script into my environment.

    — commented 3 years ago by Paul Dowsett

2 Answers

Your Answer

Think you can help? Login to answer this question!