java-me

Recommendation for Java VM running on embedded system

空扰寡人 提交于 2019-11-30 07:13:52
We are trying to support Java enviroment on our embedded platform (700 MHz MIPS 74K , 128-256 MB memory). After reading this article and googling a bit, I came up with the shorted list: Java ME from Sun Kaffe Jbed Perc HP Chai VM PhoneME  - seems the most promising one IBM WEME (Thanks to Thorbjørn Ravn Andersen) Aplix JBlend (Thanks to QuickRecipesOnSymbian) I was quite new to Java and its runtime enviroment. What do you recommend for a Java VM running on MIPS 74K? You might want to look at this too http://www.sun.com/software/jpe/es/index.xml Oracle offers engineering services for Java ME

How can I schedule a particular thread in Blackberry

巧了我就是萌 提交于 2019-11-30 05:30:51
问题 I want to auto-schedule a thread with a particular time interval. I also need to execute this in the background continously without hangs to the device. I have tried this with Application Manager Class but it's for application scheduling and I need to schedule thread within the application. 回答1: I would use TimerTask: public class MyScreen extends MainScreen { private Timer mTimer; public MyScreen() { mTimer = new Timer(); //start after 1 second, repeat every 5 second mTimer.schedule

How to deal with the most common classes missing on J2ME

馋奶兔 提交于 2019-11-30 05:01:07
I'm trying to code an application which runs un different java platforms like J2SE, J2ME, Android, etc. I already know that I'll have to rewrite most of the UI for each platform, but want to reuse the core logic. Keeping this core portable involves three drawbacks that I know of: Keeping to the old Java 1.4 syntax , not using any of the nice language features of Java 5.0 only using external libraries that are known to work on those platforms (that is: don't use JNI and don't have dependencies to other libs which violate this rules) only using the classes which are present on all those

How Do I Minimize a J2ME App?

ε祈祈猫儿з 提交于 2019-11-30 04:01:56
问题 I need my J2ME app to run in the background and still allow the user to use his mobile without problem. the app still needs to process some events in the background. I would also like to allow the user to stop the app if he wants to. How can I accomplish this? 回答1: Running a midlet in the background but still processing is not specified in the j2me standard i think. Normaly at the moment your midlet is moved to background the paused method should be called. But not every vendor implements it

Dictionary of English Words for a J2ME app

百般思念 提交于 2019-11-29 23:27:36
问题 I intend to develop a J2ME application, that should be able to read words from the English Dictionary. How do I interface to/and store a Dictionary ? Will I have to create the Dictionary myself, by inserting words, or is there a third party Dictionary available with APIs? 回答1: There are definitely free dictionary files, so you don't need to make one yourself! A good starting point is looking at a Java SE implementation of a spell checker, such as Jazzy on Sourceforge. It has dictionary files

Blackberry Audio Recording Sample Code

佐手、 提交于 2019-11-29 22:57:48
问题 Does anyone know of a good repository to get sample code for the BlackBerry? Specifically, samples that will help me learn the mechanics of recording audio, possibly even sampling it and doing some on the fly signal processing on it? I'd like to read incoming audio, sample by sample if need be, then process it to produce a desired result, in this case a visualizer. 回答1: RIM API contains JSR 135 Java Mobile Media API for handling audio & video content. You correct about mess on BB Knowledge

Connect to facebook api in blackberry

这一生的挚爱 提交于 2019-11-29 18:16:26
i found an sdk here: http://www.baskoro.web.id/facebook-connect-blackberry-HOWTO.html i tried to run the code both on device and simulator but it shows only white screen and nothing else i also tried this without result token: .append("&next= http://www.facebook.com/connect/prompt_permissions.php?api_key= " + "api_key" + "&display=popup&v=1.0&next= http://www.facebook.com/connect/login_success.html?xxRESULTTOKENxx&fbconnect=true&ext_perm=read_stre ...") but no success i also tried this without result token: StringBuffer url = new StringBuffer() .append(" http://m.facebook.com/login.php ?")

RESTful Web Services Implementations in Mobile Devices

微笑、不失礼 提交于 2019-11-29 17:46:51
I have several questions around the implementations of RESTful web services in mobile devices: Mobile client as a RESTful web service consumer: How can I build a RESTful mobile web service client and/or consume a remote RESTful web service from a mobile device? Can I use the JSR311 (aka JAX-RS) directly to implement RESTful web services in mobile device? or is there any JSR172-like or KSOAP-like for RESTful web service in mobile devices? Mobile host as a RESTful web service provider: is there any way I can host RESTful web services in a mobile device; can I use any of the existing RESTful

java.lang.nullpointerexception in j2me

一曲冷凌霜 提交于 2019-11-29 17:40:37
I am writing an application for read the mifare card,but when I pass the APDU the error occur that on emulator "java.lang.nullpointerexception".I have successfully detect the ISO14443_CARD after that I pass the APDU like if (tp.hasTargetType(TargetType.ISO14443_CARD)){ form.append("Target is ISO14443_CARD\n"); try { static byte[] APDU_AUTH1 = { (byte) 0xff, (byte) 0x86, (byte) 0x00, (byte) 0x00, (byte) 0x05,(byte)0x01,(byte)0x00,(byte)0xfc,(byte)0x60,(byte)0x00}; static byte[] STATUS_BYTE = {(byte)0x90,(byte)0x00}; if(STATUS_BYTE == iso14443.exchangeData(APDU_LOAD_KEY)) { String value1 = new