Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate aws S3 to my android app?

I am trying to figure out what is the best practice to integrate AWS S3 in my android app.

As a pre-work I have an s3 bucket which I can upload\download\delete using the python/java SDK and now I want to implement it in my android app. I found on the web different approaches and can not get my head straight what is the recently\correct way doing it. My research brought the following result:

  1. mobile hub - https://grokonez.com/android/uploaddownload-files-images-amazon-s3-android or in the amazon offical - https://docs.aws.amazon.com/aws-mobile/latest/developerguide/mobile-hub-add-aws-mobile-user-data-storage.html

  2. user pool\cognito -https://101apps.co.za/index.php/item/195-android-and-amazon-s3-secure-file-storage-in-the-cloud

  3. github project - https://github.com/nimran/Amazon-S3-Integration-in-Android - when i clone and try to activate it most of the aws calls are deprect.

  4. another amazon official, this time using Android SDK - https://aws-amplify.github.io/docs/android/storage

I am looking for a guide\repo which is up to date and explain the correct way to integrate S3 in an android app. thx

like image 724
helpper Avatar asked Nov 07 '22 13:11

helpper


1 Answers

@helpper The best way is to follow the official documentation which contains nice sample code to start, always updatated and easy to follow instead of any other sites.

For now you can follow the Android Sdk docs or the Amplify framework but the amplify framework is currently is in Preview stage which will be ready in few days.

like image 115
abby Avatar answered Nov 12 '22 14:11

abby