java-me

How do i read from database with J2ME?

I am busy with a project that requires me to read from a database and display certain results on mobile(J2ME). For example: I must list all customers in the database (SELECT * FROM CUSTOMERS) and i must display that results on mobile(J2ME). So some how i need to connect the mobile to the database. How do i go about doing this? I really ...

Display.getInstance().callSerially

I'm new to J2ME, in lots of places I have seen this: Display.getInstance().callSerially.. e.g. Display.getInstance().callSerially(new Runnable() { public void run() { startThread(); } }); why we need to use this?what is the advantage?please anyone explain me.. ...

Killing non-waiting thread

Hi, I need to kill specific worker thread in my application. I don't have any control over its execution, which means I cannot employ classic signal boolean variable approach. This thread is non-waiting. It doesn't sleep or wait on some monitor to be signalled - I can't interrupt it via Thread.interrupt, this throws IllegalThreadState ex...

Will apache poi work with J2Me?

I wish to use apache poi libraries for accessing powerpoint files in a blackberry application I am developing. Adding the jar's as external libraries causes preverification errors. (compiles successfully). My question - Can I use apche poi libraries in a J2ME application? If not is there a version of apche poi available for use with J2M...

How to get time format of current TimeZone ?

I m getting current time zone as , String defaultTimeZone = ""+TimeZone.getDefault(); Now I want to get its time for which I m using , SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z"); for eg, if currentTimeZone = "Calcutta" then its time is +0530 which will be like , SimpleDateFormat dateFormat = new S...

J2ME-recordstore

HI, Can some1 pls tel me what does recordenumertaion return when word being searched is not present in recordstore. thanks, Swetha ...

How can I schedule a particular thread in Blackberry

Hello, 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. ...

Third party decompression on Blackberry

I know the BB only handles GZip and ZLib compression/decompression. my app gets essentially a zip file containing a large number of possible file types (txt, doc, html, wmv, png, gif, etc)...decrypts and displays the file a user selects from a tree. Using these decompression algorithms is not a good way to go having to decompress/decrypt...

Strange nullPointerException in Java

I'm writing an app for Java ME, and I need a class for holding some data(PhoneBook). When I'm trying to launch this app, I'm always getting a nullPointerException. I'm calling the constructor of a class, and it allocates memory for 10 elements, so it shouldn't be null. What am I doing wrong? import javax.microedition.lcdui.*; import ja...

Problem with ChoiceGroup, strings don't fit in screen

Hi guys! I'm developing a J2ME application, and I need to show a .png picture, then right beneath it, a list of strings from which the user can select one. Since you can't append an image to a List, I tried using a Form, appending an ImageItem to it, then appending an ChoiceGroup with the options. This works very well on the Sun WTK emu...

Developing photo gallery application

I want to develop a photo gallery in Blackberry. Please give any suggestions about functionality and implementation. ...

Text to Speech in j2me

Anyone know of a good text-to-speech solution for j2me? I know it's not officially supported by any devices or in any JSR, but wondering if there are any free libraries that can do it? What about some kind of integration between j2me and python to allow this to happen? I need to add this to a big j2me application, so re-writing the wh...

kSoap API for J2ME

i am using ksoap/ksoap2 api for calling a php webservice from j2me. For ksoap: SoapObject client = new SoapObject(NAMESPACE, "ns2221:save_record"); client.addProperty("cc", "1234560789"); ByteArrayOutputStream bos = new ByteArrayOutputStream(); XmlWriter xw = new XmlWriter(new OutputStreamWriter(bos)); ...

Java for J2ME mobile development

I am planning to start some Java mobile phone development. I downloaded the wireless toolkit, but it asks for the Java SE SDK. I have got to this page - http://java.sun.com/javase/downloads/index_jdk5.jsp. Is a JDK the smae as an SDK? what do they stand for? On the page I think I will need to download the "JDK 5.0 with Java EE". What doe...

Using the hardware volume buttons to control the volume in a j2me application, nokia phone

I'm writing a Java ME application for the Nokia 6212 phone. Part of what the application does is to play short videos, which works fine. However, I have encountered a problem with volume control via the two buttons on the side of the phone. They don't seem to actually affect the application's volume, and don't even let me change it bey...

Random-access data object in J2ME

Hello, I'm planning to develop a small J2ME utility for viewing local public transport schedules using a mobile phone. The data part for those is mostly a big bunch of numbers representing the times when the buses arrive or leave. What I'm trying to figure out is what is the best way to store that data. The representation needs to be...

BlackBerry - Facebook connect from application

i m developing a blackberry app which requires facebook login. can i login to facebook via my app without stopping the app in the middle. means can i login to facebook in parallel with my application, without interrupting it. ...

"Out of Memory" error in nokia 5610 while loading MP3 file.

Hi all, i am developing one j2me application to play wav & mp3 file. problems are: while try to play mp3 file in my phone (nokia 5610d) it is making "Out of memory" error. while try to play Wav file it is giving "Sounds are not allowed" exception. few lines of my code is here. Code to play Wav file InputStream is = getClass()....

J2ME, LWUIT (V. 1.2) - Menu bar from bottom to the right of the screen!

I'm working with the mobile graphic framework LWUIT (V. 1.2) to develop an application for Nokia N97. Results are striking and elegant but I have a problem: when I rotate mobile screen, menu bar doesn't switch from bottom to the right of screen. Commands remain on the bottom while correspondent mobile buttons are now on the right... Is...

Blackberry Content Protection and the Persistent Store

I have an application which stores data to the persistent store by setting the contents of the PersistentObject as a hashtable, e.g. saving preferences is done by entering strings as the keys and values of the hashtable and then setContents is called on the PersistentObject with the Hashtable passed as the parameter. I understand that t...