Amazon S3 and Android

I am trying to write an application that downloads photos from amazon s3 server and presents the images as a slide show in the application. The application will be bundled with a tablet device specifically for this purpose. The device will use a wifi connection to check the S3 server for images and upload them for a slide show. The main problem is connecting to the s3 server and uploading images. I don't know where to start, so my question is how can I connect to the s3 server to download programmatically?

+1
source share
1 answer

I recommend that you download the AWS SDK for Android: http://aws.amazon.com/pt/sdkforandroid/ and read its documentation. It is really easy to use its API.

After you have all your SDKs and tokens configured on the server and your code, you only need a call to download the image from S3:

AmazonS3 s3 = new AmazonS3Client(AWSCredentials); S3Object object = s3.getObject(bucketName, pictureId); object.getObjectContent(); 

But read the documentation, the full configuration requires a lot of work.

+3
source

Source: https://habr.com/ru/post/1496662/


All Articles