Is it possible to determine whether an Android device is plugged into a computer or just power?

前端 未结 3 1106
野性不改
野性不改 2020-12-19 20:46

I was wondering if it was possible to specifically determine if an Android device was plugged into a computer or just power.

The main reason is I\'d like for my phon

3条回答
  •  [愿得一人]
    2020-12-19 21:29

    Well, if it's connected to the power supply and you want it to go to sleep just short press the POWER button.

提交回复
热议问题