iApp采用java代码获取当前电量信息
2021-01-25 本文已影响0人
潇洒的夏夏
java(dc,activity,"android.content.Context.getSystemService","String","batterymanager")
java(dl,dc,"android.os.BatteryManager.getIntProperty","int",4)
ss("当前电量:"+dl+"%",dl)
tw(dl)
java(dc,activity,"android.content.Context.getSystemService","String","batterymanager")
java(dl,dc,"android.os.BatteryManager.getIntProperty","int",4)
ss("当前电量:"+dl+"%",dl)
tw(dl)