java-me

Determining the index of an Item on a Form (J2ME)

Given an Item that has been appended to a Form, whats the best way to find out what index that item is at on the Form? Form.append(Item) will give me the index its initially added at, but if I later insert items before that the index will be out of sync. ...

What is the best framework for Unit Testing in JavaME?

What is currently the best tool for JavaME unit testing? I´ve never really used unit testing before (shame on me!), so learning curve is important. I would appreciate some pros and cons with your answer. :) ...

How to debug multithreaded midlet app in EclipseMe

When debugging multithreaded midlet in the EclipseMe, the breakpoints work for me only in the main thread but not i other threads. Any ideas??? ...

What can be better way to send WBXML data to web server ?

Please could you help me in sending a data from Mobile appication to Web Server in WBXML format ? I have got a bit to convert xml to wbxml but not getting how to send that to web server in efficient way ? ...

What's the difference between a midlet and a corelet?

It's my understanding that a corelet is a Motorola-ism, but does anyone know what the difference is? Do corelets have certain abilities that midlets don't? ...

Workaround for J2ME Hessian limitations ?

The official J2ME implementation of Hessian seems to have serious limitations : complex objects are not supported. This limitation is not mentioned anywhere on the online documentation, but if you google "hessian j2me" you will find posts about this problem. No solutions found with google though. Does anyone have a solution for this pro...

Java obfuscation - ProGuard/yGuard/other?

This is along similar lines as these recent questions: http://stackoverflow.com/questions/93290/best-java-obfuscation-application-for-size-reduction http://stackoverflow.com/questions/149937/creating-non-reverse-engineerable-java-programs However, one ends up recommending yGuard and the other ProGuard but neither mention both. I wonder...

Best binary/ordinary XML implementation for j2me

Following Izb's question about Best binary XML format for JavaME, I'm looking for an implementation for either binary XML-like formats or just plain XML. My metrics for such implementation, by most important first, are: Supported phones. A basic JTWI phone should be able to run it. It should be either verified or open source, so I cou...

How do you get the Class of an Abstract class (Object) in JavaME

So i need to get the Class of an object at runtime, and sorry guys Javas not my home ;0) For an none abstract class i could do something like: public class MyNoneAbstract{ public static Class MYNONEABSTRACT_CLASS = new MyNoneAbstract().getClass(); But for an abstract class this does NOT work (always gives me Object) public abstr...

Better preverifiers than Sun WTK

I'm currently using the sun preverifier to preverify my MIDlet. I'm finding that it can be a bit slow, doesnt give any decent error messages and is only available as a windows exe. Are there any better preverifiers around that will work cross platform (linux specifically) ...

Custom Date Formating in J2ME

Hi I would like to format a J2ME Date object to only show the date part, not the date and time. What would be the easiest way? Would probably need to include an external library to do this. Any suggestions? Kind regards, IanG ...

XML for mobile clients

I have a J2ME application that needs to communicate with my server, and download information for the application in XML. My application could run a lot faster if I had a better format of data, which would allow me to have more efficient parsing code. Does anyone know an efficient substitute for XML? Maybe something specific for mobile p...

J2ME widget library

I am starting to develop a J2ME app and the built-in GUI components of the java library are ugly and inflexible. Can anyone recommend a nice and easy to use (open-source...) widget library? ...

What is a good toolkit for developing Blackberry applications?

Looking for a toolkit/SDK for general Blackberry development or application toolkits. Anything like an MVC framework? ...

Getting gps data from blackberry (pearl) directly from usb interface

Has anyone researched how to access the gps chipset on a blackberry over usb so that it is unnecessary to transmit this data over the cell carrier's data network? Is it possible to access the GPS chipset, store information in a buffer, and open an interface connection (over the usb charging port), for access? Not sure if J2ME allows f...

How do I read strings in J2ME?

I'm using the MIDP 2.0 (JSR 118) and I just noticed that there is no reader for strings in J2ME. Does anyone know how you are supposed to read Strings from an InputStream or InputStreamReader in a platform independent way (i.e. between two java enabled cell phones of different models)? ...

How do I split strings?

How do I split strings in J2ME in an effective way? There is a StringTokenizer in the standard edition, but it is absent in the micro edition. ...

Best mobile application development tool/environment?

I would like to develop a mobile application that is able to access all the features of the mobile device it runs on (camera, files, phone and network connectivity). I intend to build a series of applications that each have a specific function to perform, rather than a single application with a large feature set. My programming backgroun...

How do I play a sound file in j2me on Samsung mobile phones?

File formats I would like to play include wav, mp3, midi. I have tried using the Wireless Toolkit classes with no success. I have also tried using the AudioClip class that is part of the Samsung SDK; again with no success. Thanks ...

How to get the text of an exception stack trace in JavaME

In regular Java, you can get the text of a stack trace by passing a PrintWriter to printStackTrace. I have a feeling I know the answer to this (i.e. "No") but... Is there any way to obtain the text of a stack trace in JavaME as a String? Update: I should mention that I'm restricted to CLDC 1.0 ...