Android code for the s3uploader phonegap app.