Firefly开源社区

打印 上一主题 下一主题

How to implement one-key Screenshot via a IR remote or Air-mouse hot key

741

积分

68

威望

68

贡献

技术大神

Rank: 3Rank: 3

积分
741
QQ
发表于 2015-1-26 17:51:37      楼主
take a screenshot,just need:
Intent i = new Intent("rk.android.screenshot.action");
sendBroadcast(i);
回复

使用道具 举报

741

积分

68

威望

68

贡献

技术大神

Rank: 3Rank: 3

积分
741
QQ
发表于 2015-1-29 10:32:46      沙发
richi 发表于 2015-1-28 10:05
Thank you for your reply.
How to add a Android key to send the Intent ???

0001-one-key-Screenshot-for-remote.patch.zip (1.86 KB, 下载次数: 25) this is a simple for add one-key Screenshot   via our remote,you can test in adb:adb shell input keyevent  250
If you want to use your remote,you can change the remote .kl and add REMOTE_SCREENSHOT like
--- a/frameworks/base/data/keyboards/Vendor_0482_Product_5738.kl(just a example.Vendor_0482_Product_5738.kl is our remote,you need change your remote.kl)
+++ b/frameworks/base/data/keyboards/Vendor_0482_Product_5738.kl
@@ -213,7 +213,7 @@ key 188   TV_MEDIA_MULT_FORWARD
# key 191   F21
# key 192   F22
# key 193   F23
-key 194   EXPLORER
+key 194   REMOTE_SCREENSHOT
# key 195 (undefined)
# key 196 (undefined)
# key 197 (undefined)
回复

使用道具 举报

741

积分

68

威望

68

贡献

技术大神

Rank: 3Rank: 3

积分
741
QQ
发表于 2015-1-29 12:05:00      板凳
thanks,i don`t found that.but the patch also works when you want add other function var a hotkey.
:lol
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表