PackageManager的Features设置问题

ballflying 2010-11-18 05:23:44
PackageManager类里的有个方法getSystemAvailableFeatures()可以得到一些已有的feature,
比如FEATURE_BLUETOOTH, FEATURE_CAMERA 和FEATURE_MICROPHONE等,

请问这些Feature是在哪里设置的呢?
我想把一个FEATURE_TOUCHSCREEN_MULTITOUCH设备进去,该怎么办?
谢谢。。。
...全文
572 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
DrSmart 2010-11-20
  • 打赏
  • 举报
回复
怎么结贴时,没有全部给我分
DrSmart 2010-11-19
  • 打赏
  • 举报
回复
给你篇详细的吧,androidmanifest.xml高级属性解析,看完了就知道了
ballflying 2010-11-19
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 zhq56030207 的回复:]
引用 1 楼 drsmart 的回复:

在 androidmanifest.xml中加入
manifest里面是加一些权限permission之类的,这个不能在哪里加
[/Quote]

TO zhq: 你知道怎么设置这些features吗?,,呵呵。
纠结的木棉花 2010-11-19
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 drsmart 的回复:]

在 androidmanifest.xml中加入
[/Quote]manifest里面是加一些权限permission之类的,这个不能在哪里加
ballflying 2010-11-19
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 drsmart 的回复:]
在 androidmanifest.xml中加入
[/Quote]

TO DrSmart: 怎么个加法?能说得详细点吗? 谢谢。
DrSmart 2010-11-19
  • 打赏
  • 举报
回复
在 androidmanifest.xml中加入
ballflying 2010-11-19
  • 打赏
  • 举报
回复
OK,知道了,是把frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml拷贝到手机的/etc/permissions目录下。
ballflying 2010-11-19
  • 打赏
  • 举报
回复
这两个文件是干嘛的吗? 请DRSMART大侠说明一下,谢谢。
ballflying 2010-11-19
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 drsmart 的回复:]
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml
system/etc/permissions/android.hardware.touchscreen.multitouch.xml
[/Quote]

貌似system/etc/permissions/android.hardware.touchscreen.multitouch.xml 没有。。。
DrSmart 2010-11-19
  • 打赏
  • 举报
回复
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml
system/etc/permissions/android.hardware.touchscreen.multitouch.xml
ballflying 2010-11-19
  • 打赏
  • 举报
回复
waiting for high hands...
ballflying 2010-11-19
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 drsmart 的回复:]
给你篇详细的吧,androidmanifest.xml高级属性解析,看完了就知道了
[/Quote]
TO DrSmart:
看过了你给的资料,在 androidmanifest.xml中设置的那些feature的作用只是说当PHONE上有这些
feature时,程序才能正常使用。
而通过PackageManager的getSystemAvailableFeatures()判断系统是否具有的feature并不是在androidmanifest.xml设置的。

80,490

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧