我正在尝试通过 adb shell 在我的三星 Note 3 上显示本地镜像。
<code>$</code>adb shell am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity -d file:///storage/emulated/legacy/Pictures/red.png <code>$</code> <br/>
this code works for my another display device, but not works for my Note 3, i get this error<br/>
Starting: Intent { act=android.intent.action.MAIN cmp=com.android.browser/.BrowserActivity }
Error type 3
Error: Activity class {com.android.browser/com.android.browser.BrowserActivity} does not exist.
i tried also this code<br/>
<code>$</code>adb shell am start -t image/* -d file:///storage/emulated/legacy/Pictures/red.png $
但仍然不起作用。
任何人都可以帮助我,真的很感激!
最佳答案
自己解决了:
adb shell am start -d file:///storage/emulated/legacy/Pictures/tiger.jpg -t image/jpg -a android.intent.action.VIEW
关于java - 如何通过adb shell显示本 map 片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24257866/