java-me

Get device unique ID

Is there a way to get a device's unique identification using MIDP2.0? ...

Playing audio in j2me fails

I'm having difficulty playing any audio in my j2me application. I've tried to play a simple tone, only to receive an exception: "Device Busy, cannot play the tone". I've tried to play an mp3 file that is embedded in my .jar and ended up getting an exception stating that the media contains Unsupported Data. Here's the code that I u...

Limited sockets to midp?

It seems to me that there is some kind of limitation in socket creation in MIDP. I need to make lots of connections to a server (none concourrent) and in the forth or fith try my app crashes. It crashes in the simulator and in my real device as well. To isolate any possibility of it being influenced by my code, I isolated the following ...

Update midlet wirelessly

I am currently developing a j2me application for the i290 and would like to be able to update to new midlet revisions in my application using code. The problem I am having is that one method that I know of that can do this, platformRequest(), is locked by motorola and I am not interesting in paying to sign my code. I need a way to upda...

Java input = "" isn't the same as input = null?!

I'm running a J2ME Application and run into some serious memory problems. So I built in another step to clear the huge input string and process its data and clear it. But it didn't solve the problem until I set input = null and not input = "". Shouldn't it be the same in terms of memory management? Can somebody explain me the difference...

Blackberry - get checked items from list with checkboxes

Hi, How can all checked items from a list can be fetched? I need to get all selected (checked) items from the list and populate a vector ... I am not getting all selected items, i am getting only the item on which current focus is... I am implementing listfield with checkboxes as per the knowledgebase article. If I use getSelection...

Persistent store handling

Hi, I am working on email kind of application on Blackberry. I want to store all the mails in persistent store. Also the list of contacts needs to be stored. How do I manipulate such kind of functionality using persistet store? How do I store data? Can multiple messages are saved ? And how to acccess them correctly and display on scr...

how to remove empty space

In j2me ,i have editfield which takes its input ,in it we can enter 3 digits when i enter first and third ,leaving 2nd digit empty , how to remove empty digit thanks ...

BlackBerry J2ME Efficient Coding GuideLines? Could Somebody elaborate this?

I found the folliwing code sample in BlackBerry Java Development, Best Practices. Could somebody explain what the below same code means? What is the this in the code sample poining to? Avoiding StringBuffer.append (StringBuffer) To append a String buffer to another, a BlackBerry® Java Application should use net.rim.device.api.util.Stri...

creating pie chart in j2me

Is there any way of drawing pie chart in j2me? ...

What is the maximum length a URL can be to be opened in a J2ME browser?

What is the maximum length URL? This is may be handset dependent; on a desktop, it is definitely browser dependent, as discussed in this question. I am interested in specifications or references as much as empirical data. My particular usecase is passing a very long (about 1600 character) URL to a MIDlet.platformRequest(String url), w...

J2ME - Dynamic Table/Grid with editable cells.

How can I create a table in which I can add rows and columns dynamically? How can I make cells of that dynamic table editable? I.e. I should push Edit Command button and write texts or numbers in the cell. ...

JSR135 and Blackberry Audio Recording Sample Rate

Is it possible to create a custom DataSource class in the BB SDK? The reason I ask this is because I need to record audio at a higher sampling rate than the default 8 kHz that Blackberry gives. Seems like the built in Locators don't support anything higher, just AMR and PCM audio, varying bitrates, but always sampled at 8kHz. I am 95%...

Can we run Java applictions on iPhone?

Hi All, Can we run or develop apps for iPhone in Java? Actually I am a bit confused... Please bear with me,have a look to these links and answer:- LINK 1 LINK 2 LINK 3 This is an Open discussion. All ideas are appreciated. Thank You All. ...

Consume REST service with JME (or J2ME)

Hello, I need some help getting started with this. I need to know how to call the REST service and parse the xml. My php script only sends back some xmlcode, nothing else.(no wsdl or uddi) The platform for the Nokia 5800 is S60 third edition.(that one will apply) The Nokia sdk go's by the same name. I installed Netbeans for this pro...

J2ME Access To 3G Camera

I have a SE W660 and I would like to take a snapshot from the 3G camera (which is on the front, and not on the back). Is there any way to do that? ...

Blackberry Java String to date conversion.

Hi, I used following code to convert string to date but it is applying timezone of device while conversion. I don't need this but I want same date/time from that string like String = "2009-07-31 07:59:17.427" Date = 2009-07-31 07:59:17.427 Date formatter = new Date(HttpDateParser.parse("2009-07-31 07:59:17.427")); SimpleDateFormat d...

BlackBerry - image 3D transform

I know how to rotate image on any angle with drawTexturePath: int displayWidth = Display.getWidth(); int displayHeight = Display.getHeight(); int[] x = new int[] { 0, displayWidth, displayWidth, 0 }; int[] x = new int[] { 0, 0, displayHeight, displayHeight }; int angle = Fixed32.toFP( 45 ); int dux = Fixed32.cosd(angle ); int dvx = -Fix...

Mobile Development barrier to entry.

I'm looking at making some mobile apps in my spare time and I want to be able to put them up online for anyone to use (and probably open-source). I've worked with PyS60 a while ago and I really liked it. My problem is, I don't want to spend any money on these apps (I'm not planning on making money from them in any way) and for me to p...

Do all J2ME phones support JavaScript?

Are there any J2ME phones that don't support JavaScript? And are there generally limitations on the JavaScript that is supported / portions of the language that aren't implemented? ...