[英]Transfer/Download files from usb to android device
I want to download PDF file from USB to android, whenever the USB is plugged in to an android device, not able to follow the android developer docs and get solution for this, anyone out there who has tried it using android studio? 如果我能得到代码会很棒。
您可以让用户 select USB 与ACTION_OPEN_DOCUMENT_TREE
。
然后在获得的 uri 上使用 SAF 列出文件并复制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.