java-me

Blackberry OS version

[亡魂溺海] 提交于 2019-12-06 07:21:52
问题 If I develop Blackberry application for OS version 6.0, will the application be compatible with OS version 4.5? If not, is there some way to port the application easily? 回答1: If you develop against a specific SDK (eg 6.0) your application will only be deployable to devices that use the matching OS version (6.0 in this case). In order to develop applications that specifically target different OS versions, you must build separate deployable binaries for each version. Alternatively, you can

How do I get kXML to work?

别说谁变了你拦得住时间么 提交于 2019-12-06 07:21:06
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\preverify -classpath .;C:\java_libraries\wirelesstoolkit\midpapi20.jar org.kxml2.io.KXmlParser C:\WTK2.5

Java ME - is the Bluetooth address ID globally unique?

眉间皱痕 提交于 2019-12-06 07:15:28
I'm coding a Java ME app and attempting to globally identify each phone using the app. The first attempt is to load the IMEI per this question . As a fallback ID I'm using the bluetooth address of the device. Is the bluetooth address of a cellphone a globally unique identifier? Is it a MAC address? Some other format? Yes it is unique and works just as MAC addresses . Bluetooth use the MAC-48 identifier format. It is unique, however do remember that on some handsets (Sony Ericssons?) Bluetooth needs to be switched on before the address can be obtained. This can cause a security prompt in

How to start two J2ME Midlets on Mac OS X with WTK 3.0.

血红的双手。 提交于 2019-12-06 06:19:07
Whenever I want to start second Midlet, I get error MIDlet suite is already running. I'm developing under Netbeans. On Windows it work OK. you have to choose a different phone or emulator from the project properties while you're running the first emulator. 来源: https://stackoverflow.com/questions/4014079/how-to-start-two-j2me-midlets-on-mac-os-x-with-wtk-3-0

How to restrict j2me application in the Landscape mode only

依然范特西╮ 提交于 2019-12-06 06:17:48
问题 I am developing application using J2ME and LWUIT.I want to run this application on landscape mode only. For Nokia there is an attribute : Nokia-MIDlet-App-Orientation: landscape but for other device , What is the attribute to restrict the application to landscape mode only? How to achieve this for different J2ME devices? 回答1: Following is the attribute to restrict application in landscape mode only. Nokia device: Nokia-MIDlet-App-Orientation : Landscape Samsung device: MIDlet-ScreenMode :

New BlackBerry text selection mode

柔情痞子 提交于 2019-12-06 06:12:28
In recent versions of OS6, text selection has changed. I am using an ActiveRichTextField and in BlackBerry OS pre-6.0 as well as older versions of 6.0, such as 6.0.0.246, the focus would move though each character with the inverse block showing current position. The context menu has "Select" as an option, and uses the current focus position as the selection start, and any focus movement would mark the other end of the selection. With 6.0.0.526, the focus no longer draws an inverse block on the selected character, and left-right movement on the text field does not work. Also, the context menu

Are socket connections faster than http on Blackberry?

大城市里の小女人 提交于 2019-12-06 04:44:16
问题 I'm writing an app for Blackberry that was originally implemented in standard J2ME. The network connection was done using Connector.open("socket://...:80/...") instead of http:// Now, I've implemented the connection using both methods, and it seems like some times, the socket method is more responsive, and some times it doesn't work at all. Is there a significant difference between the two? Mostly what I'm trying to achieve is responsiveness from the connection to get a smooth progress bar.

How to Increase heap size in Java ME?

人走茶凉 提交于 2019-12-06 04:36:34
Is there any way to increase the heap size for Java ME on a device? I'm developing an application for a Nokia N95, but am bumping into memory issues when I try to do image processing of larger images. The phone has plenty of heap space available, but seems to restrict the amount allowed to be used by Java ME to 1MB. Short answer: No. Longer answer: Heap-size is hardcoded in device VM. If you are running out of memory you need to split you task into more smaller sub tasks to allow GC to kick in. With limited memory only limited operations are possible. You figure... On some J2ME handsets

J2ME Soft Key Wrapper

懵懂的女人 提交于 2019-12-06 04:27:59
问题 Reading some articles, told me that soft keys varies between devices. Some says -6 or -21 for left soft key and -7 or -22 for right soft key. Given this situation, is there any good wrapper or function or best practice to handle it properly? If not possible for ALL devices, what is the best way to support most devices? with minor or no hack at all? 回答1: To give you a feel for the scope of the problem have a look at this table of keycodes. Omermuhammed's approach is a good one if you are able

Shared Library for iPhone and BlackBerry

こ雲淡風輕ζ 提交于 2019-12-06 04:13:28
问题 I have a set of functionality (classes) that I would like to share with an application I'm building for the iPhone and for the Blackberry (Java). Does anyone have any best practices on doing this? 回答1: This is not going to be possible as far as I understand your question - the binary format for the iPhone and Java are not compatible - and even for a native library on a blackberry device. This is not like building for OS X where you can use Java unfornately the iPhone doesn't support Java. The