简体   繁体   中英

How does Gmail handle attachments in Android

I want to send an attachment from my app. I start an ACTION_SEND intent with the file URI that I want to attach.

I can get a callback to my app when the user clicks SEND, but since uploading the attachment can take a while how do I know if the email is actually sent?

I need to know this since I want to delete the file after. What happens if the file is deleted in the meantime?

在处理程序中使用线程并删除处理程序.post中的文件,尽管您必须自己进行测试,但这可能仍然有效...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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