• 查询SystemFeature的方法


       查询SystemFeature的方法可以在adb shell下敲如下的命令:

    dumpsys package

    然后搜feature关键字。

     

    例如,我的平台的SystemFeature,如下所示:

    Features:
      android.hardware.faketouch
      android.hardware.wifi
      android.hardware.camera
      android.hardware.wifi.direct
      android.hardware.usb.accessory
      android.hardware.microphone
      android.hardware.usb.host
      android.hardware.camera.autofocus
      android.software.live_wallpaper
      android.hardware.touchscreen
      android.hardware.screen.portrait
      android.hardware.camera.flash

     

    没有mHasDistinctMultitouch=context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT);

    ”android.hardware.touchscreen.multitouch.distinct”这一项。


    如果有这一项的会导致如下的判断不执行:

      public void onCodeInput(intprimaryCode, int[] keyCodes, int x, int y) {

            caseKeyboard.CODE_SWITCH_ALPHA_SYMBOL:

                // Symbol key is handled in onPress()when device has distinct multi-touch panel.

                Log.v("onKeyDown","---------changeKeyboardMode-------11------------"+distinctMultiTouch);

               if (!distinctMultiTouch) {

           Log.v("onKeyDown","---------changeKeyboardMode-------12------------");

                    switcher.changeKeyboardMode();

                }

    这样就会导致遥控器去操控的时候,出现很多的问题。




  • 相关阅读:
    百度浏览器 h5页面fixed布局不显示问题
    Vue3_arco.design icon 组件批量渲染
    异步加载数据的 js tree (基于Jquery)
    ASP.NET MVC 与 WebForm 对比
    asp.net 页面生命周期
    ASP.NET通过OLE DB操作Excel
    SQL 分页查询的几种方式
    OLEDB读取Excel文件丢失部分数据
    MVC 基于FormsAuthentication 方式的权限验证
    Session不超时
  • 原文地址:https://www.cnblogs.com/javawebsoa/p/3199023.html
Copyright © 2020-2023  润新知