android - Sony smartwatch 2 check and change back light status programatically -
I'm working on Android App Extensions for Sony smartwatch 2. I have some listings and gallery views for it now I'm able to open the gallery view on list item clicks. I am using ActiveLowPower when the backlight is dimmed and the user clicks on any inventory view object, then it should first change the blacklight to dull, and if the backlight is bright then it should call the gallery view. How can I check and change the Smart Watch Backlist status?
I would recommend using SCREEN_STATE_AUTO for low power mode to complete it. If you set it to Auto, then backlit will automatically come when the user will touch the edge of the clock. Otherwise, you can manually control backlight status through SCREEN_STATE_ON or SCREEN_STATE_OFF. To find out if there is a change in active low power mode state, you can check ControlExtension.onActiveLowPowerModeChange () callback.
For more information, see the Active Low Power Mode section:
Comments
Post a Comment