Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我如何使用android.hardware.usb和c#使用jni读取Unity 2018 android应用程序中的usb存储?_C#_Android_Unity3d_Java Native Interface_Usb - Fatal编程技术网

我如何使用android.hardware.usb和c#使用jni读取Unity 2018 android应用程序中的usb存储?

我如何使用android.hardware.usb和c#使用jni读取Unity 2018 android应用程序中的usb存储?,c#,android,unity3d,java-native-interface,usb,C#,Android,Unity3d,Java Native Interface,Usb,我正在努力理解代码中的JNI。我正在尝试在我的VS 2017应用程序中使用c#检索连接的usb存储设备路径,该应用程序使用unity 2018 for android。我不确定我是否正确理解Java 有人能帮我在android应用程序中使用JNI和c#连接USB存储吗?在尝试JAVA代码之前,先获取要读取和/或写入存储设备的c#代码。如果存储设备是智能驱动器,则可能需要证书才能访问。您可能还需要在PC上搜索USB设备,因为com号码可能会更改。我做了,我试过。。我正在使用driveinfo.ge

我正在努力理解代码中的JNI。我正在尝试在我的VS 2017应用程序中使用c#检索连接的usb存储设备路径,该应用程序使用unity 2018 for android。我不确定我是否正确理解Java


有人能帮我在android应用程序中使用JNI和c#连接USB存储吗?

在尝试JAVA代码之前,先获取要读取和/或写入存储设备的c#代码。如果存储设备是智能驱动器,则可能需要证书才能访问。您可能还需要在PC上搜索USB设备,因为com号码可能会更改。我做了,我试过。。我正在使用driveinfo.get驱动器在pc和t的作品。我需要在android中获取usb存储路径。DriveInfo在android上不起作用。请看:我可以将xamarin与unity+vs2017一起使用吗?第二个链接与此无关。我从来没有提到我需要检查文件创建日期