如何显示通过ADB壳局部图像 [英] How to display a local image via adb shell

查看:119
本文介绍了如何显示通过ADB壳局部图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过亚行外壳上我的三星注3显示本地图像。
$ 亚行外壳分开始-a android.intent.action.VIEW -n com.android.browser / .BrowserActivity -d文件:///storage/emulated/legacy/Pictures/red.png $

这code适合我的另一个显示设备,但不是我注3的作品,我得到这个错误

首发:意向{行动= android.intent.action.MAIN CMP = com.android.browser / .BrowserActivity}
错误类型3
错误:Activity类{com.android.browser / com.android.browser.BrowserActivity}不存在。
我也试过这code

$ 亚行外壳上午开始-t图像/ * -d文件:///storage/emulated/legacy/Pictures/red.png $


但还是不工作。
任何人可以帮助我,真是AP preciate为!

I am trying to display a local image on my Samsung Note 3 via adb shell.
$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 $
but still doesnt work. Can anybody help me, really appreciate for that!

推荐答案

解决自己:

亚行外壳时开始-d
  文件:///storage/emulated/legacy/Pictures/tiger.jpg -t图像/ JPG -a
  android.intent.action.VIEW

adb shell am start -d file:///storage/emulated/legacy/Pictures/tiger.jpg -t image/jpg -a android.intent.action.VIEW

这篇关于如何显示通过ADB壳局部图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆