java-me

int cannot be dereferenced

Hello, I am beginning in java (I'm learning in microedition) and I got this error: "int cannot be dereferenced" in the following class: class DCanvas extends Canvas{ public DCanvas(){ } public void drawString(String str, int x, int y, int r, int g, int b){ g.setColor(r, g, b); //The error is here g.drawStri...

Resources for determining how widely JSRs are implemented for J2ME

Does anyone know of any resources that can give me an idea of how widely various JSRs are implemented? Links Which phones support which spec ...

What's a good way to represent and store data in Java's RecordStore?

Given that Java ME allows for no reflection and is quite stripped down, what would a good approach to storing data in a RecordStore be? I thought of devising a JSON-like syntax adapter class which would probably require every class whose values are to be stored to implement a Hashtable + might probably require an additional regex library...

Are there public themes for LWUIT that I can download

Hello, I am beginning my first steps in J2ME and working now on the LWUIT. I am wondering where can I find ready themes that I can use? ...

Do resources in JAR file consume phone's memory?

This question is about J2ME: do resources packed into JAR file consume memory when not used? I need a small application, not too much code, but quite a lot of data packed with the application. This data is a large set of relatively small binary objects that will only need to be in memory one at a time. If I pack say 1MB of data files in ...

J2ME: Convert transparent PNG image to grayscale

Hello, is there any possiblity in J2ME to convert an image (loaded from a png file with alpha) to a new transparent grayscale image? Until now I only got the rgb values, but not the alpha. Thanks. Edit: yes, it should be 32 bit grayscale. ...

MIDP 2.0 version issues: $method is undefined for $type

Hi, I've written a MIDlet that does several "advanced" things: fetching images from the web, resizing them, saving them on the phone, displaying them. This all works perfectly in the Nokia S60 3rd Edition FP1 emulator. This device has MIDP 2.0 and CLDC 1.1 support (also JSR75, which I need in order to save files). It also works as it s...

j2me bluetooth client. Function startInquiry nothing found.

I develop simple j2me bluetooth client and have problem with bluetooth device search. Function startInquiry nothing found. Client : nokia 5220 Server : my pc with bluetooth adapter All bluetooth devices is on. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import javax.microedition...

Slide in/out event in N97 using J2me

I would like to listen the slide IN/OUT event of the NOKIA devices(Touch + QWERTY Keyboard) in J2ME App. I need your inputs for the same. Do i need to follow complex implementation or is there any other way around?Will midpjni help? ...

Blackberry Storm - focus issue on bitmap field

in my screen there are 3 managers h1 h2 bmpf = new BitmapField added in order like this as backgroundmanager.add(h1) backgroundmanager.add(bmpf) backgroundmanager.add(h2) add(background manager); protected boolesn navigationClick() { int index1 = h1.getFieldWithFocusIndex(); int index2 = h2.getFieldWithFocusIndex(); return true; } ...

BlackBerry Storm - focus does not comes on focussable fields added after scrollable list field

searchlist = new FileList(list_vector,ind,j);//a custom list field searchlist.setRowHeight(40); searchListManager = new VerticalFieldManager( Manager.VERTICAL_SCROLL |Manager.VERTICAL_SCROLLBAR) searchListManager.add(searchlist); objManager.add(searchListManager); HomeScreen1.this.add(header_manager); HomeScreen1.this.add(objManag...

No application to launch in Eclipse Mobility Simulator

I am running Eclipse Pulsar with Java ME SDK 3.0. When I try running my application, a screen appears with select one to launch, but it contains no options. Both the active Java ME configuration is set to use the ClamshellCldcPhone1 and I am using the Project Device in the run configuration. The executable is set to a Midlet. Any suggest...

Java ME ArrayList - Vector - Define object types and access object methods through vector

Hi there, I'm making a shopping list mobile application (Java ME) and i have two classes; item, list. item object allows get/set name and quantity (string itemName, int quantity) Now i need to store an array of items in my list class and be able to access the methods of the object from its list array index as follows; code below is ps...

Java ME libraries

Java ME is quite sparse on features. Are there any libraries you use to add missing features? I don't want to focus on UI libraries - these are better discussed here. I am aware of that there exists JSRs with optional features. ...

Open ASF with J2ME

Hello everyone! I'm on a project right now and I'd like to know how to play an ASF file on a cellphone. What do I need to do to get it done? Thanks! ...

Blackberry How to play sound (short[]) using the speaker of the device ?

I am using Alert.startAudio to play an array of short values, I want the same short[] to be played using the phone speaker, how could I do this ? ...

How to create Date object from year,month,day in Java ME

We can't use java.text.SimpleDateFormat, so is there any way to create date object from year,month,day in Java ME? ...

Dynamically detecting supported configuration/profile/JSRs in Java ME

How do I dynamically detect what profile/configuration is being used and what JSRs are supported? I know that you can dynamically detect supported classes, but I would be surprised if picking a random class that should only be in a particular profile/configuration were the proper way of doing this. ...

Supporting multiple versions without separate builds in JavaME

I want to be able to support multiple versions of Java ME without having to have multiple builds. I already know how to detect the profile/configuration/supported JSRs. My problem is that knowing whether the JSR is supported at run time doesn't allow me to use all the features as Java-ME does not provide support for reflection. For if I...

BlackBerry - controlling video playback (play,pause,forward,seekbar)

Hi Anyone please help me to add video controls(play,pause,forward,seekbar) to my application ...