Android中电池信息(Battery information)的取得
2010-09-10 00:41:00 来源:WEB开发网核心提示:109 Log.v("present", String.valueOf(present));110 Log.v("level", String.valueOf(level));111 Log.v("scale", String.valueOf(scale));
109 Log.v("present", String.valueOf(present));
110 Log.v("level", String.valueOf(level));
111 Log.v("scale", String.valueOf(scale));
112 Log.v("icon_small", String.valueOf(icon_small));
113 Log.v("plugged", acString);
114 Log.v("voltage", String.valueOf(voltage));
115 Log.v("temperature", String.valueOf(temperature));
116 Log.v("technology", technology);
117 }
118 }
119 };
120}
参考资源
● BroadcastReceiver | Android Developers
● BatteryManager | Android Developers
更多精彩
赞助商链接