java-me

j2mewtk - adding files to DefaultColorPhone temp settings.

I am using Netbeans and j2mewtk to develop and test mobile applications. If I want to do file IO on an image the emulator uses ...\j2mewtk\2.5.2\appdb\temp.DefaultColorPhone[####]\filesystem\root1 to store files for the current, temporary emulation. If I want to operate on a pre-existing image I have to start the emulator, check which t...

How do i keep a caught exception from reporting as uncaught in a blackberry app?

Edit: this applies to simulators only, but i would still like to know if there is a resolution. I have some code in a blackberry application that catches an exception at some point, does some handling in the catch block then rethrows the exception, which is caught higher up on the call stack. However even though i do catch it later on,...

Unable to access bluetooth device via COM port on dell axim pda with J2ME

Hi, I'm trying to write part of a J2ME application and I'm responsible for reading NMEA data from a GPS device attached via bluetooth (to a Dell Axim X51 PDA). I've paired the gps device with the PDA and I can run the sample program that comes with the gps device and it succesfully streams NMEA strings. In system settings, in GPS set...

Is it possible to upload data as a background process in j2me?

Even with a poor network connection? Specifically, I've written code which launches a separate thread (from the UI) that attempts to upload a file via HTTP POST. I've found, however, that if the connection is bad, the processor gets stuck on outputstream.close() or httpconnection.getheaderfield() or any read/write which forces data over...

Common format for time zone in Java/J2me

We are developing a j2me app for syncing contacts to/from a server. we are storing the update and create time (long mill sec) with each contact for conflict resolution/sync calculations. Now as the client and server app can be in different time zones , how one can store time with time zone in a standard format (to take care diff time zo...

How to implement a most-recently-used cache

What would be the best way to implement a most-recently-used cache of objects? Here are the requirements and restrictions... Objects are stored as key/value Object/Object pairs, so the interface would be a bit like Hashtable get/put A call to 'get' would mark that object as the most recently used. At any time, the least recently used ...

Do you know a good J2ME tutorial?

I have to create prototype application for a mobile using J2ME. I searched for good tutorial but failed to find any. Is there any good tutorial which can guide step by step what needs to be done to create a simple HelloWorld application on mobile? ...

Gameloop for j2me "turn-based" game

Edit: This makes alot more sense to me now that i've taken a step away from the code, thanks for the help. Just found stack overflow the other day through Coding Horror and it looks awesome. Figure that i'd ask the community about a problem i'm currently trying to work out. I'm developing a roguelike sortof game using j2me for midp 2....

Deploy midlet on Nokia mobile

I have written a midlet which asks username and password and connect to servlet running on tomcat to validate. When I run the midlet on the emulator provided by sun toolkit, first time it asks "This midlet wants to connect to http://... using airtime" and asks user permission. I want to know is there anyway to get rid of this? Once this ...

Midlet connectivity via broadband or GPRS

Midlet using HttpConnection to connect a webservice application. A mobile can use a wireless broadband to connect to internet or can use internet facility provided by the network provider i.e. Vodafone or Virgin which is I think known as GPRS. Correct me if my understanding is wrong. Now my question is when the midlet will run which co...

How to create a stream of jpegs(live) in c++ or c# or java? RTSP?

I am building a server sided html rendering browser that renders html and sends jpegs to the mobile client. I need to figure out how to build a server that grabs jpegs and streams them in a session to a client that i am going to write in j2me ...

DateField in J2ME

I used DateField in a Form. When I try to select a date it opens up calendar functionality provided by cellphone. As you know the UI features in j2me are not that great. I looked at third party libraries to design fancy UI. So far I have not found any api which makes DateField fancy. Is anybody aware of any API which supports DateField?...

J2ME app Vs browser on a handset

Recently I started developing a J2ME app prototype. I noticed how difficult it is to develop a good looking UI. Consider developing an app in J2ME for booking flights interacting with webservice. A website to book flights will be easy to develop with nice ui and can be accessed by browser on a handset. I understand not all handsets hav...

How to read and write network sockets in Java ME on a device with simplex connectivity?

Dear all, I am working on a mobile communicator and after establishing connection to the server using following method (to illustrate that I am using StreamConnection, InputStream and OutputStream) I distribute inputStream and outputStream between two separate threads, lets call them Sender and Receiver. Connection method: private I...

Logic for Searching *.* from text file using J2ME Application

Hello, Friend I have a one textField in J2ME. I want to search from a textfile using that textField Value then what will be the logic for that ? Suppose if i enter abc in textField then logic should return abc by comparing it from textfile field. ...

j2me - Rotate array of 2d points in 45 degree increments

I'm working on a roguelike style cellphone game that operates on a grid. Attacks/Items in this game operate by targeting tiles in a pattern relative to the user. The paturn is usually relative to the direction the user is aiming in as well, For instance in this screenshot the pattern Point2d[] damageTiles = new Point2d[4]; ...

Is there a good J2ME IDE?

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? ...

Is the original Java ideal dead?

I feel that while I love J2ME and Java it's hypocritical of them to have two APIs for Java. Java was designed with "One code, many platforms" in mind, and now it's more like "One API for every OS, and one API for everything smaller than a netbook." I see a lot of J2ME emulators and such being ported to things like the PSP, and other cons...

How do I get started with J2ME?

i am new to J2ME. please suggest me how can i install it and where from. and what else i have to downlaod to install J2me ofcourse with jdk. ...

How do I convert between ISO-8859-1 and UTF-8 in Java?

Does anyone know how to convert a string from ISO-8859-1 to UTF-8 and back in Java? I'm getting a string from the web and saving it in the RMS (J2ME), but I want to preserve the special chars and get the string from the RMS but with the ISO-8859-1 encoding. How do I do this? ...