AWS for Android SDK host name error
Posted
by
feelingtheblanks
on Stack Overflow
See other posts from Stack Overflow
or by feelingtheblanks
Published on 2012-09-04T21:05:15Z
Indexed on
2012/09/07
21:38 UTC
Read the original article
Hit count: 172
I'm trying to upload to AWS S3 by using thier AWS for Android SDK but both sample project within SDK and my project give the following error on devices while emulator runs without problem. So there's no problem with my AWS account.
"Host name may not be null."
Upload Code :
s3Client.createBucket(Constants.getBucket());
PutObjectRequest por = new PutObjectRequest(Constants.getBucket(), record.getFile().getName(), record.getFile());
s3Client.putObject(por);
Any help is appreciated.
© Stack Overflow or respective owner