java-me

Sending SMS to a non native port – other than port 0

Follow up to: Possible to query the native inbox of a mobile from J2ME? How do I tell Kannel to send an SMS to specific port other than the native inbox port(port 0 i suppose)? My J2ME app on the mobile side listens to this particular port and will pick up the SMS ...

J2ME power(double, double) math function implementation

Hi! I want to implement math function power to double, can you advice algorithm for this? I've reviewed sources of Java ME Open Source Software - Math but I want to implement it from the scratch. Thank you! ...

J2ME: How to generate random number?

Hi, I just wanted to know how do I generate random number using J2ME? Basically i want to generate a 14 digits random number each time when the menu item Generate is clicked from the mobile's screen. Thanks ...

J2ME: How to make a call?

Hi, Let's suppose i have created a text box with a phone number in it prefilled. How do i make a call when a button Call is clicked. The call should be for the number specified in the text box. How to make a call programatically for the specified number in J2ME? Thanks ...

How to get IMSI on Nokia phones using J2ME

Hi all, I am trying to the get the IMSI using System.getProperty("com.nokia.mid.imsi")); But it keep returning my a null value. I have tried this on N97 mini and E71 which runs on Symbian OS. Is it my code error or some settings that i need to do to get the IMSI?? Any help will be greatly appreciated!!! Kevin ...

Detect mobile device indoor (J2ME)

Hi all, I am trying to develop a mobile application using J2ME to detect the device indoor. As GPS is impossible to detect the mobile device indoor. So i am looking into using location base with cell id. Can anyone gives me some guidance on the approach of this? opencellid.org provides a free source for detecting the mobile using cel...

How to deal with multiple threads in one class?

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

How to filter an array in Java?

How can I filter an array in Java? I have an array of objects, for example cars: Class: public class Car{ public int doors; public Car(int d){ this.doors = d; } } Use: Car [] cars = new Cars[4]; cars[0] = new Car(3); cars[1] = new Car(2); cars[2] = new Car(4); cars[3] = new Car(6); Now I want to filter the arr...

J2ME: platformRequest Issue

Hi, I want to call a number in below format using platformRequest: platformRequest("tel:*123*33584744#"); But it gives me error Invalid number on the phone. But if i call this number manually by typing on phone then it works fine. Even below works fine: platformRequest("tel:33584744"); So i suspect problem lies when i put * or # ...

Add single unit of time to timestamp for use in Blackberry application

Hi, How can I add a single unit of time to timestamp, just like "add method" of Java "Calendar" class but by using Blackberry API set Can anyone please help me with source code? ...

How to compare almost similar Strings in Java (ME)? (String distance measure)

I would like to compare two strings and get some score how much these look alike. For example "The sentence is almost similar" and "The sentence is similar". I'm not familiar with existing methods in Java ME, but for php I know the levenshtein function. Are there better methods in Java? ...

Compression in J2ME

Are there any OSS compression libraries (gzip) available for J2ME? ...

J2ME - number format

Hi! I need to format decimal numbers with patterns in J2ME just like java DecimalFormat. I see an option to port Format/NumberFormat/DecimalFormat. Can you suggest ready to use implementation or library? Thanks! ...

POST HTTP request from j2me

I am making an HTTP request from a j2me application for CDC. The GET request method woks just fine but when i am using the post method i get the message: Status Line Code: 413 Status Line Message: Request Entity Too Large The message that i am sending is only 5 characters long so i don't know which is the problem. The code is listed ...

How to sort Persistent store records in Blackberry application?

Hi All, Can you please help me in sorting persistent store records in Blackberry application? I want to sort it in ascending and descending order... Please help. Thanks in advance ...

JavaME: How to use platformRequest to use special chars

Hi, How to use platformRequest to initiate a call involving special chars eg * or # Example: platformRequest("tel:*123#"); Or any alternative to platformRequest please. Details: Nokia N70 CLDC 1.0 MIDP 2.0 ...

Java ME compatibility layer for Android

Is there any Java ME compatibility layer for Android, which makes porting Java ME (aka. J2ME) applications easier? I mean a third party class library which redirects calls to internal Android API. ...

Don't let the display go to stand-by in JavaME

Im streaming video to my MIDLET. And while it is playing it, after 20 seconds (depends on a system setting) display on the phone goes to stand-by mode. How can I prevent this so I can watch the video for 5 minutes for example without having to tap something to wakeup the display? ...

Class.getSuperclass() replacement on Java ME?

How can I get the the superclass of a Class instance in Java ME. That is, fake the Class.getSuperclass() functionality with the limited functionality available in CLDC 1.1? What I want to do is to let the abstract super class do something like this: public Styler getStylerForViewClass(Class clazz) { Styler s = stylers.get(clazz); ...

Does J2ME Media Player on Nokia E65 work?

I'm trying to write a simple media playback application in J2ME. Currently I'm starting with the most simple thing, I just want to play wav file from resource included in the jar file. I'm using this simple code: DataInputStream wav = new DataInputStream(getClass().getResourceAsStream("sample.wav")); Player player = Manager.createPl...