开发者

Find the location of android device's Environment.getExternalStorageDirectory using ADB?

Is there a way using ADB to know the location of what a specific plugged in device will return for Environment.getExternalStorageDirectory ?

I would like to push a file there and then read this file from the activity running on the device. I think this path can vary based o开发者_如何转开发n device, and I will have to run this on numerous different android devices.

Thanks!


For now you could probably get away with just using "/sdcard" in case you don't find a better solution. It's defined pretty static in the Android source.


is 'adb shell "echo $EXTERNAL_STORAGE"' what you have been looking for?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜