从J2ME获取电池状态 [英] Get battery status from J2ME

查看:153
本文介绍了从J2ME获取电池状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过J2ME获取电池状态?

How can I get battery status through J2ME ?

推荐答案

嗯,这样做的唯一标准方法是通过JSR- 256。移动传感器API。

您可以阅读中的规范http://www.jcp.org/en/jsr/detail?id=256

Well, the only standard way of doing this is through JSR-256. The mobile Sensor API.
You can read the specifications from http://www.jcp.org/en/jsr/detail?id=256

不幸的是,它是最近的,并没有在大多数零售店实际实施尚未推出。

Unfortunately it is very recent and not actually implemented in most retail phones yet.

发货时,索尼爱立信Satio(或Idou)将拥有它。

When it ships, the Sony Ericsson Satio (or Idou) will have it.

编辑:诺基亚N97有JSR-256,它可以安装在诺基亚N85和诺基亚5800上。

Nokia N97 has JSR-256 and it can be installed on Nokia N85 and Nokia 5800.

编辑:这是Attilah的另一个JSR-256问题,答案中有一些代码。

这篇关于从J2ME获取电池状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆