问题标签 [midp-2.0]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
861 浏览

java-me - 检查手机上是否安装了威瑞信根证书

有没有办法使用 midp 检查手机上安装了哪些根证书?

谢谢

0 投票
2 回答
2107 浏览

java - 如何使用 j2me (midp2.0) 从收件箱中读取 SMS 消息?

我想从 j2me 应用程序访问收件箱消息文本。我不知道访问收件箱。

0 投票
1 回答
318 浏览

java - 在 midp 中检测 wifi 和网络连接

是否可以使用 midp 检测到手机具有网络连接和/或 wifi ?

谢谢

0 投票
1 回答
174 浏览

java - 填充矩形 - 绘制方法 (MIDP)

我试图使用 .fillrect 方法的两次调用和每个方法之间的 Thread.sleep 调用来慢慢绘制一个矩形。发生的事情是在初始化矩形之前调用了 sleep 方法,因此看起来矩形已经被绘制了。我只想画矩形的一部分,暂停五秒钟,然后画另一部分。

这是我的代码 -

谢谢

0 投票
1 回答
223 浏览

java - javax.microedition.lcdui.CustomItem (MIDP) 上的选定监听器

如何将侦听器添加到 javax.microedition.lcdui.CustomItem 以便在选择它时触发事件?

谢谢

0 投票
1 回答
1551 浏览

java-me - Getting Original Phone useragent with J2ME

Kinda new to J2ME. I was wondering how I could go about in getting a J2ME midlet to send the original user agent of the mobile device to a server instead of: "Profile/MIDP-1.0 Configuration/CLDC-1.0"?

The problem here is that I wont be able to kno the specific device the midlet runs on in order to manually set the useragent. This is because I'm developing a J2ME SDK that will be widely distributed for advertising purposes within other applications. It's like a plugin that fetches and display ads within an app.

For example, if the midlet runs on a sonyericsson, how can i get the midlet to send the original phone useragent:

to my server without actually using

"setRequestProperty(" User-Agent", "SonyEricssonW300i/R4EA Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1")" ?

I want to detect the true device using WURFL on the server-side. If the midlet sends "Profile/MIDP-1.0 Configuration/CLDC-1.0" as the useragent, WURFL will detect the phone as "Generic J2ME midlet" instead of SonyEricsson W300.

I'd really appreciate it if someone assist.

0 投票
1 回答
276 浏览

java-me - form.remove 命令不起作用

form.addCommand 是如何工作的?我遇到了一个问题,当我创建一个新表单时,以前的表单命令被添加到新表单中。我在新表单上调用 form.removeallcommands 但无济于事。有没有人经历过类似的事情?

谢谢

0 投票
1 回答
531 浏览

java-me - 有没有人遇到过使用 j2me 连接到蓝牙服务的问题?

我一直在尝试使用 j2me 连接到蓝牙服务,但我得到一个空异常......

客户端能够识别附近区域的设备,但无法连接到他们的服务。我正在粘贴我的代码,如果有人能告诉我原因以及代码是否正确,我将不胜感激。

//服务器

//客户

0 投票
2 回答
1881 浏览

java-me - 将 Netbeans 项目导入 Eclipse Pulsar 后出现“类型的未定义方法”错误

我将一个 netbeans 项目导入 Eclipse(Pulsar for Mobile Developers.Version:Helios Service Release 1,Build id:20100917-0705)。我多次出现两个错误-

  1. Random 类型中的 nextInt() 方法不适用于参数 (int)
  2. 未为 String 类型定义方法 equalsIgnoreCase(String)

该项目在netbeans中运行良好,但由于OutOfMemoryError,我无法调试它,因此切换到eclipse。

我已经看到了,但它并没有解决我的问题。

任何其他提示来解决这个问题?

  • 萨利尔
0 投票
2 回答
1217 浏览

java-me - j2me 播放多个声音文件的问题

我现在在 eclipse 中的 j2me MIDP2 中开发的游戏中播放超过 2 个声音文件时遇到问题。请告诉我播放多个“wav”声音文件的最佳方法。我创建了以下在程序启动时调用一次的方法

每次我需要播放其中一个声音时,我都会停止其他两个玩家(以确保他们中没有人在运行p2.stop(); p3.stop();)并启动第三个(p1.start();)并且每次我有两个玩家停止(处于 PREFETCHED 状态)时第三个没有运行并且抛出异常。