I want to use adb shell to tell my device to display an image on its SD card. I thought this command would work:
adb shell am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity -d file:///storage/sdcard0/Android/data//files/myfile.jpg
Unfortunately 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 also tried doing a VIEW action, and trying with only the -n or the -d parameters.
adb shell am start -a android.intent.action.VIEW -d file:///storage/sdcard0/Android/data//files/myfile.jpg
Using only the -d parameter results in this error (I tried both with and without the "file://" prefix on the path):