java-me

Problem on obfuscating j2me applications in Netbeans 6.8

人盡茶涼 提交于 2019-12-12 01:33:57
问题 When I'm trying to package a midlet with obfuscation, the following is displayed on the output window: pre-init: pre-load-properties: exists.config.active: exists.netbeans.user: exists.user.properties.file: load-properties: exists.platform.active: exists.platform.configuration: exists.platform.profile: basic-init: cldc-pre-init: cldc-init: cdc-init: ricoh-pre-init: ricoh-init: semc-pre-init: semc-init: savaje-pre-init: savaje-init: sjmc-pre-init: sjmc-init: cdc-hi-pre-init: cdc-hi-init:

Xml Dom Parsing in J2ME

谁说我不能喝 提交于 2019-12-12 00:21:59
问题 In my J2ME Application, I can get the xml data as a string from Server, but I can't be able to read the tag and its elements through code. Please suggest me some solution for it. 回答1: If your target device has JSR 172 you can use SAX or DOM . If not you can try kxml2. There is a nice introduction to it at http://www.developer.nokia.com/Community/Wiki/XML_Parser_in_Java_ME 来源: https://stackoverflow.com/questions/12858576/xml-dom-parsing-in-j2me

FTP client in J2ME

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 00:00:21
问题 I am trying to develop a FTP client in J2ME, i have completed the GUI development. But I dont want to re-invent the wheel (if it exists) to write out a full new FTP library. So, Can anyone tell me if there is any FTP library existing for J2ME or not. Else i have to write the full code using socket programming. 回答1: Did you trying google? http://sourceforge.net/projects/j2meftpclient/ It's usually worth trying to find out if there's a library available for your core functionality before you

Override keypress method in lwuit

丶灬走出姿态 提交于 2019-12-11 22:49:54
问题 How to override keypressed method form in lwuit? if suppose user press numeric 1 from keypad how can I know that user has pressed 1? In canvas we just need to handle keypressed method. but in lwuit how to handle this method. and which listener I have to implements? 回答1: keypressed is method in interface so you always override that methos in class see this example if you dont khow exact key code then print key code in public void keyPressed(keyCode){ System.out.println(keyCode); } run your

j2me wtk find memory leak

送分小仙女□ 提交于 2019-12-11 21:01:23
问题 I built a game in j2me and I have memory leak because from time to time I get out of memory exception, now I want to spot where this leak is coming from and I heard you can do it with sun's wireless tool kit. Can someone explain me exactly what is this wireless tool kit, how I install it and how to use it in-order to find memory leaks ? Thanks in advance ! 回答1: After you download wtk,Go to \bin\utilsw.exe.Under Utilities you will see "Memory monitor".Here you can graphically view app memory

What are the j2me bluetooth frameworks available?

馋奶兔 提交于 2019-12-11 20:59:01
问题 I am new to J2ME. I am working on a software which will send a image (taken from the camera) to a pc for further processing and am looking for a bluetooth framework. What are the ones, with good documentation and examples, available ? 回答1: Bluetooth APIs for J2ME are defined JSR 82: Java APIs for Bluetooth. For usage information you can read for example: Using the Java APIs for Bluetooth Wireless Technology, Part 1 - API Overview Using the Java APIs for Bluetooth, Part 2 - Putting the Core

EventInjector on browser

拜拜、爱过 提交于 2019-12-11 20:11:11
问题 How do I use an eventinjector on a browser in blackberry to close the browser. I want to simulate the ESCAPE key being pressed on the handheld when the browser loads so that the app exits the browser and goes back to the main screen. I tried doing this myself but have not been successful. Any help would be most appreciated. 回答1: If you really want to control browser, you could use BrowserField , BrowserField2 in your app. You could also inject listener for key pressing or tracking which app

Access app permissions programatically in j2me

送分小仙女□ 提交于 2019-12-11 19:55:08
问题 I know I can set permissions of a j2me application before launching it ask first time or whatever for SMS, Read and Write. What I want to do is how can I access these options after launching the application from inside the app (no matter yet my app is not signed). I just want to get access to these permissions pragmatically, I tried to see few examples but they differ a lot, does anybody know about this? Thanks 回答1: Figured it out that it's not possible to get permissions settings inside J2me

Table or gridlayout in J2ME

依然范特西╮ 提交于 2019-12-11 19:43:06
问题 I want to display 3 rows on the screen for which table or gridlayout is needed. Is it possible without using frameworks? How should I implement for displaying 3 rows on the screen? 回答1: You should try to use existing GUI libraries that help you use XML, CSS etc. to do layout. One site to check out this: http://www.newsofthefuture.net/index.php?/archives/33-Evaluation-GUI-libraries-for-J2ME.html Enjoy! 回答2: If you want to use Table or gridlayout in J2ME you should create your own item with the

Running .jad file in Mac OSX Lion

隐身守侯 提交于 2019-12-11 18:06:55
问题 I want to run a .jad file in Mac OSX Lion. I tried with WTK 2.5.2 linux edition on mac and got the below error. :bin$ ./emulator -Xdescriptor my-jadfile.jad java.lang.UnsatisfiedLinkError: /Applications/WTK2.5.2/bin/sublime.so: no suitable image found. Did find: /Applications/WTK2.5.2/bin/sublime.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01 0x00 at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java