Access file on my android phone from C#

拥有回忆 提交于 2019-12-25 04:12:24

问题


I connect my galaxy s4 to my computer in USB cable.
I can see drive "Galaxy S4" in "My computer"--> "Portable Devices".
My question is how can I access a file on the device from C# application?
(I can't find full path to file, for example to jpeg file in folder 'Galaxy S4\My Pictures\Picture.jpeg')


回答1:


Perform the following steps (on your Galaxy S4):

  1. Settings
  2. Developer Options
  3. Enable Developer Options
  4. Enable USB-debugging

With Developer Options enabled it is possible to access all the files.

Path of a file will look like:

C:\Users\UserName\AppData\Local\Microsoft\Windows\Temporary Internet Files\........



来源:https://stackoverflow.com/questions/18297207/access-file-on-my-android-phone-from-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!