有没有类似于android的PhoneStateListener的j2me电话状态监听器
我将开发需要检测来电号码并能够挂断电话的应用程序。我有几款支持 j2ee midp2 的手机,我想用它来实现此目的,但我找不到能够为我提供呼叫者号码和/或管理呼叫状态(挂断它)的 j2me API。
Android 上有 PhoneStateListener,因此应用程序可以监听来电和交易与它。
由于该应用程序不用于转售/分发(我不受手机限制,仅受 GSM 网络限制),我也可以使用一些价格合理的工业级解决方案。
所以问题是:是否有可能在 j2me 中检测来电者详细信息,或者我只能扔掉所有可用的诺基亚手机并购买一些低端 Android 设备?
I'm going to develop app that will need to detect the caller number and be able to drop the call. I've got several various j2ee midp2 enabled phones I want to use for this, but I can't find j2me API that is able to provide me the caller number and/or manage the call state (drop it).
On Android there is PhoneStateListener, so app can listen to incoming calls and deals with it.
Since the application is not for resale / distribution (I am not bound to mobile phones but only to the GSM network) I can use also some reasonably priced industrial-grade solution too.
So the Q is: is there any possibility to detect caller details in j2me or I just have to trash all my available Nokia phones and buy some low-end Android stuff instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,该功能在 Java ME 中不可用。只有您可以从应用程序内拨打电话。您无法访问呼叫注册表。
Unfortunately this functionality is not available in Java ME. Only you can make call from within an application. You can't access call registry.
目前,低端 Android 似乎是一条出路。
<块引用>
移动电话API允许java应用程序访问
与呼叫相关的功能,例如:
到不同的网络)
模式”
转发
身份呈现限制”或“用户组”
currently, low-end Android stuff seems like the way to go.