Heart Rate Sensor not found (LG Watch Urbane)

前端 未结 1 974
别那么骄傲
别那么骄傲 2020-12-21 16:48

I\'m trying to access to the heart rate sensor of my LG Watch Urbane using this code on MainActivity.java:

mSensorManager = (SensorManager) getSystemService(         


        
相关标签:
1条回答
  • 2020-12-21 17:11

    Ensure that your application has defined and granted the Body Sensors permission.

    Verify that:

    <uses-permission android:name="android.permission.BODY_SENSORS"/>
    

    is present in your AndroidManifest.xml

    Also, ensure that the permission has been granted by checking the Permissions settings on the watch: Settings -> Permissions -> Your app

    0 讨论(0)
提交回复
热议问题