JSR 256 battery events

后端 未结 2 1054
孤独总比滥情好
孤独总比滥情好 2020-12-11 12:31

How can I detect whenever the power cord is unplugged from electrical socket using JSR 256?

2条回答
  •  再見小時候
    2020-12-11 13:29

    You would add javax.microedition.io.Connector.sensor to the API Permissions tab of the Application Descriptor of the project properties.

提交回复
热议问题