How to stop the phone from charging via USB programmatically
问题 I've tried to do as much research as possible but can't find an answer to this fairly simple question (want to figure this out before I'm going to set up the SDK and everything).I'm thinking about developing my first app and am wondering whether the BATTERY_STATUS_CHARGING from the BatteryManager contains only a get function or also a set function. I wan't to make an app in which I can manually stop the phone from charging without unplugging it from the charger (via USB) and so am wondering