简体   繁体   English

没有互联网android时上传到Amazon s3

[英]Uploading to amazon s3 while no internet android

Hello i just started to using AWS S3 and still getting familiar with the sdk for android. 您好,我刚刚开始使用AWS S3,但仍然熟悉Android的SDK。 i am intrested in the next scenario: User tries to upload image but there is no internet connection, is there any way the api offers so the picture will be uploaded when the user opens the app some other time with internet connection. 在下一个场景中,我很感兴趣:用户尝试上传图像,但是没有互联网连接,api是否提供任何方式,因此当用户在其他时间通过互联网连接打开应用程序时,图片将被上传。 like upload eventualy when you get internet connection. 如最终在您连接到互联网时上传。

将待处理的上载存储在数据库中或其他位置,您可以通过广播接收器收听网络状态的更改。当Internet连接可用时,通过服务启动待处理的上载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM