java-me

How to hide midlet icon in sonyericsson

ぐ巨炮叔叔 提交于 2019-12-23 01:59:10
问题 help me on this issue which you have stated here "Some newer Sony-Ericsson phones (with the JP8.3 platform onward) have a proprietary java application management API that can only be accessed if your MIDlet is signed by Sony-Ericsson, along with jad properties that allow you to hide your MIDlet icon from the user." I have developed an application in j2me and i want to check whether i can hide its icon or not. 回答1: To hide your application from the user, add the following applications

Handling Optional APIs in J2ME

断了今生、忘了曾经 提交于 2019-12-22 18:33:35
问题 What is the right way of working with optional APIs in Java Mobile? Does one need to make different versions of their app? Or is it enough to check APIs availability at runtime using System.getProperty() ? Let's say I'd like my app to support JSR-256 (the Sensor API). Would importing classes from javax.microedition.sensor and registering variables of these types break my app if the device doesn't support it? I am sure there must be a pretty standard way of handling that situation. Thanks! 回答1

How do I get kXML to work?

孤人 提交于 2019-12-22 18:25:05
问题 I'm trying to implement an existing XML parser: kXML. I ran into the following error: java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException at com.sun.midp.midlet.MIDletState.createMIDlet(+29) at com.sun.midp.midlet.Scheduler.schedule(+52) at com.sun.midp.main.Main.runLocalClass(+28) at com.sun.midp.main.Main.main(+80) Execution completed. At this site you can find the error that I ran in to. The solution however doesn't work. I used the following script: C:\WTK2.5.2_01\bin

how to handle keypressed event in canvas for alphanumeric using j2me midp2.0?

你离开我真会死。 提交于 2019-12-22 18:13:11
问题 I am using canvas for drawing Strings in mobile screen based on the user input using key pressed event. Here my user wants to enter alphanumeric character like abc. For example user try to enter 'd' then it will display 3 instead of 'd'. So, do I get both String and numeric and able to draw in the mobile screen? 回答1: Na if you're doing it in Canvas, you'll need to implement your own typing. I guess you'll have a 2D array of characters for each number. [['a', 'b', 'c'], ['d', 'e', 'f']... You

J2ME App not sending POST requests

不羁岁月 提交于 2019-12-22 17:08:38
问题 I am a bit confused right now. I have a J2ME app that sends POST requests to a servlet. It was working up until miraculous this morning it stopped working. It just won't send the POST data. It will contact the server, but the request data will be empty. System.out.println(request.getParameterMap()); Always returns {} I tried to check the network monitor from the emulator and I saw this sq~wLhttp://localhost:80802xѬ2xѬ????????xsq~wLhttp://localhost:80802xѬ2xѭ????????xsq~z?http://localhost

J2ME App not sending POST requests

*爱你&永不变心* 提交于 2019-12-22 17:08:12
问题 I am a bit confused right now. I have a J2ME app that sends POST requests to a servlet. It was working up until miraculous this morning it stopped working. It just won't send the POST data. It will contact the server, but the request data will be empty. System.out.println(request.getParameterMap()); Always returns {} I tried to check the network monitor from the emulator and I saw this sq~wLhttp://localhost:80802xѬ2xѬ????????xsq~wLhttp://localhost:80802xѬ2xѭ????????xsq~z?http://localhost

Dynamic Array of ints in j2me

倖福魔咒の 提交于 2019-12-22 15:35:09
问题 I want to do a simple dynamic array of ints in my j2me application, The only dynamic array I see is "java.util.Vector" and this one doesn't seem to accept an int as a new element (only wants Objects). So how do I go around fixing that problem? 回答1: public class DynamicIntArray { private static final int CAPACITY_INCREMENT = 10; private static final int INITIAL_CAPACITY = 10; private final int capacityIncrement; public int length = 0; public int[] array; public DynamicIntArray(int

Windows Mobile 6 J2SE-scale JVM implementation

試著忘記壹切 提交于 2019-12-22 14:55:51
问题 Does anybody have experience of a decent J2SE (preferably at least Java JDK 1.5-level) Java Virtual Machine for Windows Mobile 6? If you know of any CLDC VMs, I'm also interested because even that would be better than what we currently have for the platform. 回答1: Yes, I've tried doing things with Java on Windows Mobile. I tried really hard. The best advise I can give you is: Stop right now, and start using .NET Compact Framework. Anyway, the two 'good' JVMs for WM are IBM-J9 and NSICom Creme,

Windows Mobile 6 J2SE-scale JVM implementation

橙三吉。 提交于 2019-12-22 14:55:46
问题 Does anybody have experience of a decent J2SE (preferably at least Java JDK 1.5-level) Java Virtual Machine for Windows Mobile 6? If you know of any CLDC VMs, I'm also interested because even that would be better than what we currently have for the platform. 回答1: Yes, I've tried doing things with Java on Windows Mobile. I tried really hard. The best advise I can give you is: Stop right now, and start using .NET Compact Framework. Anyway, the two 'good' JVMs for WM are IBM-J9 and NSICom Creme,

Blackberry: Push Notification in Blackberry application

徘徊边缘 提交于 2019-12-22 14:15:21
问题 Has anybody implemented push notifications for a BlackBerry application? 回答1: Yes, Blackberry provides an example application with the SDK and you can use the material on the blackberry website to see how to implement a push service: http://us.blackberry.com/developers/platform/pushapi.jsp 来源: https://stackoverflow.com/questions/8396978/blackberry-push-notification-in-blackberry-application