有没有类似于android的PhoneStateListener的j2me电话状态监听器

发布于 2024-12-03 12:16:58 字数 449 浏览 0 评论 0原文

我将开发需要检测来电号码并能够挂断电话的应用程序。我有几款支持 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

少钕鈤記 2024-12-10 12:16:58

不幸的是,该功能在 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.

枕头说它不想醒 2024-12-10 12:16:58

目前,低端 Android 似乎是一条出路。

  • 对于类似的东西有 JavaME API 规范(JSR 253 Mobile Telephony),但我我不知道有任何真正的手机支持它

    <块引用>

    移动电话API允许java应用程序访问
    与呼叫相关的功能,例如:

    • 发起语音和紧急呼叫
    • 接听/接听来电
    • 控制并结束现有通话
    • 接收通话状态更改的事件通知
    • 接收网络状态变化的事件通知(例如漫游
      到不同的网络)
    • 访问网络信息,例如网络 ID 和“网络选择”
      模式”
    • 使用补充服务,例如多方通话和通话
      转发
    • 获取有关补充服务的状态信息
    • 激活/停用补充服务
    • 发送/接收非结构化补充服务数据
    • 管理与通话相关的电话和用户参数,例如“电话
      身份呈现限制”或“用户组”

currently, low-end Android stuff seems like the way to go.

  • There is JavaME API specification for stuff like that (JSR 253 Mobile Telephony) but I am not aware of any real phones that support it

    The Mobile Telephony API allows java applications to access
    call-related functionality such as:

    • Initiate voice and emergency calls
    • Receive/accept an incoming call
    • Control and end an existing call
    • Receive event notifications of call state changes
    • Receive event notifications of network state changes (e.g. roaming
      to a different network)
    • Access network information such as Network ID and "Network Selection
      Modes"
    • Use supplementary services such as multiparty calls, and call
      forwarding
    • Get status information about supplementary services
    • Activate/deactivate supplementary services
    • Send/receive Unstructured Supplementary Service Data
    • Manage call-related phone and user parameters such as "Phone
      Identity Presentation Restriction" or "User Group"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文