java-me

Is there a good J2ME IDE? [closed]

霸气de小男生 提交于 2019-12-03 10:47:50
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Is there a good J2ME IDE? I mean something lightweight, and portable. Something that can run what you program on it. My favorite Java IDE is JCreator Lite. Is there something like that for J2ME? Also, which would you say is the best J2ME IDE? Netbeans is

BlackBerry InputStream to String conversion

会有一股神秘感。 提交于 2019-12-03 08:56:52
How do I convert an InputStream to a String on a BlackBerry? I would store the data from the inputStream in a StringBuffer. The code would look like this: byte[] buffer = new byte[1024]; StringBuffer sb = new StringBuffer(); int readIn = 0; while((readIn = inputStream.read(buffer)) > 0) { String temp = new String(buffer, 0, readIn); sb.append(temp); } String result = sb.toString(); How about this for minimal code: String str = new String(IOUtilities.streamToBytes(is), "UTF-8"); Jonathan's approach assumes your bytes represent a String in default BlackBerry encoding (ISO-8859-1). However most

What libraries are available to help create 2D Java games for phones?

淺唱寂寞╮ 提交于 2019-12-03 08:40:38
I want to begin developing 2D Java games for phones (on J2ME) therefore I'd like to know if any libraries or "engines" exist to help out in the various graphical tasks: Drawing text with pixel fonts? Drawing bitmaps for sprites with multiple frames like animated GIFs? Drawing graphics with code, lines, beziers, flood-filling and gradient fills ? Ordering / layering of sprites? Or maybe a great book exists, that gives you enough code samples to get off the ground quickly? I didn't use it myself, but heard some good reference on here . And here is even a list of libraries, you might need. MIDP

polling a HTTP server from J2ME client

痴心易碎 提交于 2019-12-03 08:25:05
I have a J2ME app running on my mobile phone(client), I would like to open an HTTP connection with the server and keep polling for updated information on the server. Every poll performed will use up GPRS bytes and would turn out expensive in the long run, as GPRS billing is based on packets sent and received. Is there a byte efficient way of polling using the HTTP protocol?. I have also heard of long polling, But I am not sure how it works and how efficient it would be. Actually the preffered way would be for the Server to tell the phone app that new data is ready to be used that way polling

Debugging j2me on a Device

﹥>﹥吖頭↗ 提交于 2019-12-03 07:23:30
Has anybody had any success ever attaching a debugger to a tethered device? I am able to debug my j2me application in the emulator, but have a lot of trouble sorting out phone-specific problems when they come up. The phone I'm using is a Nokia N95, but ideally the debug process would work on any phone. Is this possible? If so does anyone have steps they've used to set it up? Sony Ericsson supports debugging on ebery phone at least since K700, this is done by using KDWP. UIQ 3 communicators also can be debugged the same way. By the way, it the latest phones by SE it is even possible to monitor

BlackBerry threading model

社会主义新天地 提交于 2019-12-03 06:13:55
问题 I've read a lot of comments mention in passing that the BlackBerry threading model deviates from the Java standard and can cause issues, but no amount of googling has enlightened me on what this means exactly. I've been developing a fairly large business application for the BlackBerry and, although I don't really have any previous experience with Java multi-threaded applications, haven't come across any issue that we've been able to blame on threading, other than what we caused ourselves. Can

Design a GUI for a J2ME app

时光毁灭记忆、已成空白 提交于 2019-12-03 06:06:19
问题 How do I create a J2ME app for cellphones with a GUI similar to the menus you see in Java games? I've tried MIDlets with Netbeans but they only show you one GUI element at a time. (textbox, choice, login, etc) And which Java IDE would you typically design these GUIs in? Netbeans or Eclipse? and is IntelliJ IDEA usable for this aswell? Do I have to write/get a library that draws GUI controls to screen via bitmap functions .. and keeps track of the keys pressed for focus? 回答1: You can also use

Develop Blackberry apps using native API or J2ME?

邮差的信 提交于 2019-12-03 05:53:19
问题 We're about to build a Blackberry application but would love some input on whether to implement using J2ME (MIDlet based) or Blackberry native (UIApplication). I understand some of the tradeoffs. J2ME will be more flexible if we want to port the app to other devices. RIM has better support for Blackberry native. The place I'm still lacking information, though, is on the UI side. We want to build an app that has a great user experience, and one that looks like other apps BB users are

How to make a J2ME application run in Background?

痞子三分冷 提交于 2019-12-03 03:16:50
I have a written a J2ME application which uses Bluetooth and search a file within the peer mobile and download it. I would like to make my application run in background , whenever I get a call , or message and later resume after few seconds , Has anybody worked on this please share your experience . Is there any way to run a Midlet in background ? to set a j2me app to the background use the following in your midlet class: Display.getDisplay (this).setCurrent (null); to get the screen back use the following: Display.getDisplay (this).setCurrent (myCanvas); Where myCanvas is your canvas

How to deal with multiple threads in one class?

旧街凉风 提交于 2019-12-03 02:58:09
Threads are often designed in two ways ( see java tutorials ): either by extending the Thread class or by implementing the Runnable class. Either way, you need to specify what will run inside the thread. I designed a class, an adapter towards an online resource, that retrieves different kinds of information. This class consists of methods like getInformationOfTypeA() and getInformationOfTypeB(). Both contain code to connect to online resources, so both need to be threaded to avoid deadlocks. The question is: how should I design this? I can do it like below, but then I can only implement one