java-me

bluetooth in j2me

how to check whether my device's bluetooth is turned on or off. i have used ispoweron() method but it doesn't work can any one have solution on this. ...

Text editor in J2ME - Store text in memory to edit

Hello. I'm developing a text editor in J2ME for editing source code, and because it has special features like syntax coloring, I can't use the regular TextBox, so I have to make a text box from scratch, using Canvas. I found the way of reading/writing files from/to memory card, using FileConnection and the InputStreamReader/OutputStream...

j2me devices transparency support

I'm developing an application using j2me for mobile devices. I need to find a way to check if the device supports transparent images or not. Is there a common way to do it? ...

[Blackberry/J2ME] How to draw a route between two locations on CloudMade

Hi, I'm trying to use CloudMade's route service. I want to display a Route between two locations in my standalone application, but there isn't any tutorial in CloudMade's website that handle this. How can I display the Route? Appreciate any help. ...

Java's DataInputStream.readUTF and number of bytes read

Hi there! I am writing a custom archive format in JAVA (J2ME to be precise). The archiver works OK, however I have little problems with de-archiving. How could I know how many bytes have been read when reading a UTF8 string thorough the readUTF method? I know that the first two bytes of a string saved using writeUTF are a short value o...

Link Console with source code in Eclipse

I have a J2Me project, that throws exceptions, in other projects (J2Se projects) I'm used to press on the exception link in the console in Eclipse, and it would take me straight to the source line, for some reason, in the J2Me project this does not happen. Any idea on how to fix this? Adam. ...

j2me Apps keyPressed does not working in nokia 3110c

I am facing a problem with keyPressed(int key) method while running it in my nokia 3110c mobile.when i pressed the fire button KeyPressed(int key) method does not works,but it works nicely in my java wireless tool kit .I debugged the code using 'PuTTY' while running in my mobile and found that every thing works except three key FIRE,TO...

Debuging J2ME application in Eclipse with Emulator

I want to debug in J2ME MIDlet application in Emulator using S40 6th Edition SDK. I've tried to put breakpoints but emulator doesn't break on them. Is it possible? ...

Phone as Bluetooth Headset

Hello, I need my phone to act like a Bluetooth headset. I am planning to run a J2ME application in Phone to make Phone as Bluetooth Headset. Any idea how to do this? ...

Java ME Utility Functions

JavaME is quite sparse on features. Please list your favourite utility functions for making using it more like using proper Java, one per answer. Try to make your answers specific to Java ME. ...

ArrayList in J2me?

i hava arraylist of database records.I want to put it in my J2me List.But there is no split or arraylist in j2me.Any suggestion for it or code example ...... ...

How to hide the midlet icon on Nokia phones in J2ME?

Hello Everyone, I have developed a midlet that is supposed to be invoked using Push Registry only. The user must not be able to manually start the app. I have achieved this by checking if the midlet was not invoked through Push Registry, then exit the midlet immediately. but is there any way to hide the app from application folder on No...

j2me memory resident application

How I can make a j2me application to be in memory resident? ...

Creating a javax.microedition.lcdui.Image on J2Se Application

Hey, I have designed a component for J2Me, and here is the paint method: import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; class Component { ... public void paint(Graphics g) { if (background != null) g.drawImage(image, bounds.getLocation().x, bounds.getLocation().y, 0); } ... } I want to...

record a call on a cellphone

I want to record an incoming call using j2me. ...

Can I enable bluetooth on a mobile device with java?

sorry for my bad english, can someone tha has worked with java on a mobile device (cell phone) tell me if its possible to enable the bluetooth connection of the device from a java application? thanks ...

I want to upload mulitiple images from j2me to servlet

While I am uplodaing multiple images in j2me to servlet, I am able to get first image in servlet but not able get second image. is something wrong in my code? could you please suggest This is my code. // For First Image uploading String message1 = ""; message1 += "-----------------------------4664151417711" + CrLf; ...

get the selected item from list in j2me?

i am working with j2me List.It contain many elements.I want when i select the any of them i can use it value in my required function.e.g in my code i select a number when i select it i press a command chat a text area is shown when i write some text there this i can get easily but how the selected element from list how i can get it .......

nokia j2me fullscreen width, height problem

I'm creating a canvas and setting it as fullscreen. In the canvas my getHeight() and getWidth() functions does not return the actual height and width of the full screen. It returns them as if I didn't set it to full screen. How can I get the size of the full screen in nokia phones or other ones that have the same problem? ...

How to start bluetooth services to connect PC and J2ME fone for data transfer?

I built an app in java as j2me midlet which can discover other bluetooth devices. But it cannot discover their services. I need to be able to transfer some simple numbers from my fone to PC running on Vista. I think it has Broadcom bluetooth h/w! I also got the braodcom SDK but i didnt understand the documentation they provided. It uses ...