我试图通过adb shell在Samsung Note 3上显示本地图像。
$
adb shell am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity -d file:///storage/emulated/legacy/Pictures/red.png $
this code works for my another display device, but not works for my Note 3, i get this error
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
$
adb shell am start -t image/* -d file:///storage/emulated/legacy/Pictures/red.png $
但仍然无法工作。
任何人都可以帮助我,真的很感激!
答案 0 :(得分:4)
解决了自己:
adb shell am start -d file:///storage/emulated/legacy/Pictures/tiger.jpg -t image / jpg -a android.intent.action.VIEW