从C#访问我的Android手机上的文件 [英] Access file on my android phone from C#

查看:623
本文介绍了从C#访问我的Android手机上的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过USB电缆将galaxy s4连接到计算机.
我可以在我的电脑"->便携式设备"中看到驱动器"Galaxy S4".
我的问题是如何从C#应用程序访问设备上的文件?
(我找不到文件的完整路径,例如在"Galaxy S4 \ My Pictures \ Picture.jpeg"文件夹中的jpeg文件)

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')

推荐答案

(在您的Galaxy S4上)执行以下步骤:

Perform the following steps (on your Galaxy S4):

  1. 设置
  2. 开发者选项
  3. 启用开发人员选项
  4. 启用USB调试

启用开发人员选项"后,便可以访问所有文件.

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

文件路径如下:

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

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

这篇关于从C#访问我的Android手机上的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆