Search code examples
androidamazon-web-servicesamazon-s3aws-amplify

Method to download object from AWS S3 for use in Android app?


I am running a scheduled python script on an EC2 instance which creates and exports a JSON file to my S3 bucket for a backend. I am hitting a brick wall attempting to download the JSON file for use in an android application. The AWS mobile SDK documentation suggests the mobile SDK is depreciated in favor of AWS Amplify, but Amplify seems to be overkill for this simple backend connection, and attempts to integrate it for my project are proving nightmareish.

Is there a simple way to download from S3 using an android HTTPS request library, or should I be using a different resource for backend storage entirely? Or is the correct route to continue working to use the Amplify suite to make the connection?


Solution

  • You can use aws-s3-transferutility api of aws mobile sdk. https://github.com/awslabs/aws-sdk-android-samples/blob/main/S3TransferUtilitySample/S3TransferUtilityTutorial.md