java-me

client server socket based communication

I recently tested a socket based communication between a J2ME app and a local computer, the J2ME app was running on a emulator in NetBeans 6.7 and the server socket was also running on the same computer in Netbeans. Now I would like to move the serversocket onto the internet and test the app first on the emulator and then on on actual mo...

what is the best programming language for mobile phone development involving SMS ?

Hi, I work in an environment were most people use Nokia (Symbian OS) and I am required to develop software that handles SMS inbox. I know Java (J2ME or MIDP) would be the best being platform-independent, but it doesn't support accessing the SMS inbox to read or create messages. so what is the next best language/platform to use, bearing...

polling a HTTP server from J2ME client

I have a J2ME app running on my mobile phone(client), I would like to open an HTTP connection with the server and keep polling for updated information on the server. Every poll performed will use up GPRS bytes and would turn out expensive in the long run, as GPRS billing is based on packets sent and received. Is there a byte efficien...

Advice about J2ME for Blackberry available IDEs and documentation.

I'm developing standard J2ME apps in NETbeans, but is there any specific IDE and emulator for Blackberry development? Any specific documentation about J2ME for Blackberry? Thanks a lot in advance ...

How can I code Android with J2ME?

Hi, As for as i know that android application can be developed in core java only.But is it possible to code android with J2ME.Please give some example codes. regards, s.kumaran. ...

HttpConnection truncating messages in Sony Ericsson W580

Hi guys, I've been having a problem while using HttpConnection with a Sony Ericsson W580. The response to my http requests is application/octet-stream, and I'm sending a quite large array of bytes. In this mobile phone however, it is consistently being cut down to 210 bytes... I've tested the MIDP application in a large number of dif...

How do I assign a device level hotkey to my Blackberry App?

Blackberry devices have shortcuts to open applications. For example, if you hit the 'T' button, the tasks app will open. (BTW, you have to have "Call from Home Screen" disabled in the Phone App Settings for this to work) How can I assign a shortcut key to open my own application? For clarity and in case the link dies, I'll post the i...

Speex for Blackberry

Hi, How do I use speex for Blackberry application ? Is there any sample code available to refer? Thanks in advance. ...

Checking Battery Status in Blackberry development

Hi, I am developing an application for 8900 + 9000 Blackberry. In my application I need to check if the battery is connected to a charger, specifically an in-car charger. I used the following to check if the battery is charging: if (DeviceInfo.getBatteryStatus() & DeviceInfo.BSTAT_CHARGING) != 0){} This works fine but if the batter...

What does fragmented memory look like?

I have a mobile application that is suffering from slow-down over time. My hunch, (In part fed by this article,) is that this is due to fragmentation of memory slowing the app down, but I'm not sure. Here's a pretty graph of the app's memory use over time: The 4 peaks on the graph are 4 executions of the exact same task on the app. I ...

GUI Design in J2ME

I have been recently digging into Mobile Programming, I practically tried out the J2ME polish GUI framework, Although the GUI made with Polish looked pretty decent, I realized that The User Interface was not what I was looking. I started scourging the web most of all Stack Overflow and formulated certain rules : Java ME is ubiquito...

Java ME: Are there some good opensource APIs which make the limited Java ME more Java SE like?

Hello! Recently I started playing around with Java ME. The standard API seems very limited to me, compared to recent Java SE. Are there some good opensource APIs which would make Java ME more Java SE like? ...

Tunneling HTTP PUT through POST in ADO.NET Data Services

The problem with J2ME clients consuming ADO.NET Data Services (Astoria) is that there is no support for the PUT and DELETE verbs. Using the WCF REST Starter kit one can intercept a request to a WCF service using a new ServiceHost that exposes a property called Interceptors which lets you intercept requests and responses. Since Astoria i...

Is there any way to have an "inverted" clip region for painting in Java?

I want to fill a region using Graphics.fillRoundRect(), but I want a rectangle in the middle of it to not be filled. Essentially, given a component of 100x30, I want to set clipping to be the rectangle at 10,10 of size 80x10 but have the fill only paint the area outside that 80x10 rectangle. The reason is that I want a border of n pixe...

How do I develop Java games for phones?

How do I begin developing J2ME games for mobile phones? Are any libraries available that can render pixel fonts for text? - for text games Are 2D graphic libraries available that can draw animated bitmaps? - for isometric and tiled games Any are 3D engines available with texture mapping & lighting? -- for racing and flying simulators ...

How to get the stacktrace in a mobile device?

I'm getting a NullPointerException in a Nokia S40. I want to know what is causing this exception. The device shows: NullPointerException java/lang/NullPointerException This error only occurs in the device, running in the emulator the application works fine. I use microlog to debug my application. But the application works fine i...

J2ME Read ID3 Tags From Walkman (Sony Ericsson)

Is there any way to read the currently playing song title/artist (id3 tags) in walkman on sony ericsson (w series) phone? ...

MIDP Java implementation of SQLite DB

Are there any MIDP implementation of SQLite db available for use of sqlite db within a MIDlet, rather than using RMS. Of course, there are Floggy and OpenBaseMovil, however they are based on RMS, but are there any implementations that allows to perform operations in an sqlite db file? ...

j2me - How to create image in jpg format?

My j2me application must take a photo, edit it a little and save it somewhere (or send to server). Camera return me bytes of an image in jpg format, but after I create an Image object from it (using Image.createImage()), I could not pack it back to jpg. Is there any jpeg encoders for j2me? I found one written in j2se, but it uses j2se-...

What libraries are available to help create 2D Java games for phones?

I want to begin developing 2D Java games for phones (on J2ME) therefore I'd like to know if any libraries or "engines" exist to help out in the various graphical tasks: Drawing text with pixel fonts? Drawing bitmaps for sprites with multiple frames like animated GIFs? Drawing graphics with code, lines, beziers, flood-filling and gradie...