java-me

j2me 2d graphics engine

For J2ME I found a number of GUI frameworks like LWUIT, J2ME Polish, Twuik etc however, I am looking out for a 2d Graphics Engine for the Java ME platform preferably lightweight < 50K, I came across TinyLine this supports reasonable features for a mobile device. On similar lines do we have an open source or free 2d graphics engine, lib...

Adding JSpeex Jar file to Blackberry Project

Hi, I am trying to add JSpeex's jar file to Blackberry project. Compilation fails if I add it. Also, if I add source files to the project, compilation fails as JSpeex is pure Java and classes are not supported in Blackberry app. Please help me to resolve the issue... Thanks in advance. ...

BlackBerry - is it possible to develop branded applications?

I've been asked to look into the development options for BlackBerry. My client wants to build an application that represents their brand. I realize that there are different techniques for doing development and the Java/J2ME approach is probably the most powerful. Does anyone have experience with building branded applications, or have sc...

What is the best way to compile J2ME and J2SE apps from the same codebase?

Hi all, I'm trying to build an app for both J2ME and J2SE. The presentation code will obviously be different, but I'm hoping to keep the logic common, as much as possible. My plan is to use Ant or Antenna's preprocessor to select either the J2ME or J2SE Graphics object, with that class being the only intersection between my logic and d...

J2ME does not find my implementation of java.util.TreeMap

What I'm trying I'm trying to use java.util.TreeMap in a J2ME application. I know that TreeMap is present on J2SE but not on J2ME, so I've made some efforts to port the J2SE 6.0 TreeMap to J2ME 1.2 and included it in my Midlet Jar. This involved porting half of the collections framework, but now I'm (theoretically) done with that and wa...

Can A Midlet invoke another Midlet?

I been looking around and at sources like this one they say that a Midlet can invoke another if they are in the same suite, or if they are in the same namespace and in the same jar file. I do not understand what a Midlet-Suite is? Also after searching through the web I did not find any documentation or code examples for One Midlet invo...

compiled Jar file contains excess class files

In a NetBeans Mobility Project I have attached a zip file to the Resources folder, this zip file contains around 10 .class files. In my mobility application I am actually using 4 classes from the zip file, however when I compile and build my project the destination jar file seems to contain all the 10 .class files from the zip file. I...

Button Image Problem

hallo. I want to ask something to you here. I know this may be easy for you, but this may be difficult for me. I learn new J2ME. I want to know the basics of the programing languages this. I have a case like this: class DrawImageCanvas extends Canvas { static Image image; static Image image2; static Image image3; static...

j2se to j2me WTK bluetoooth communication

Hi all, I need some way to communicate between J2SE app and j2me midlet running in emulator in netbeans. how can i achieve this? Abdul Khaliq ...

Error creating javax.microedition.rms.RecordStore in NetBeans 6.0

I'm trying to write an application with J2ME that uses javax.microedition.rms.RecordStore to store persistent data. I'm developing this project in NetBeans 6.0 and J2ME 2.2 on Gentoo. When I try to run the project, I get an error because apparently the record store can't be created. Here's a sample of output including the stack trace: j...

RandomAccessFile in Blackberry

Hi there, I know there is no RandomAccessFile class in Blackberry's set of APIs.I have a Java third party library that uses RandomAccessFile class. How do I convert it to Blackberry specific class, and more over, Is there any alternate solution for implementing RandomAccessFile ? Please help. Thanks. ...

How to write data into text file in blackberry?

Dear Friends, I want to know how to write content in file. example:I am having one basic edit field and one save button if click the save button then it should write the content of basiceditfield into one text file and i can able to retrive that file in later.Can any one tell me how to do ? If u can provide me some code snippet...

Wrapper libraries around J2ME apis

Are there any convinient wrapper libraries around somewhat inconvenient J2ME apis for working with PIM data? ...

Set text highlight colour of Blackberry RichTextField

Does anyone know how to set the background colour of just a section of text within a RichTextField on the Blackberry? I already use the offsets, attributes and fonts arrays to make changes to the appearance of certain sections of the text, but I would like to add a highlight colour to the background of one section too. I know there is ...

J2ME, Reading Cell-ID from Nokia S40

Reading around Nokia forums, It seems that accessing Cell-ID and related info from Nokia S40 series phones is virtually impossible unless your Midlet is signed, and even this would work only for S40 3rd Edition FP1 and above. I tried the following on a Nokia S40 Dev Platform 2 phone , using Java ME: System.getProperty("com.nokia.mid.ce...

Log user into facebook using session key from my Facebook app

I have a simple Desktop Facebook application that allows the user to retrieve some of their Facebook info(Written in Java). This info is then sent to their phone. When the user sees something of interest (e.g. new comment) in their phone's 'facebook-viewer' (JavaME) they can click to launch a browser and go to 'facebook.com' to view it...

J2ME location API (JSR 179) on non-GPS devices

The Java ME Location API says it supports: Mobile Network based positioning. GPS Short Range Beacons Quite a number of phones support this API (JSR179). However, some phones don't have an inbuilt GPS module, is it still possible to use this API to obtain the phone's current location? ...

Dynamic Array of ints in j2me

I want to do a simple dynamic array of ints in my j2me application, The only dynamic array I see is "java.util.Vector" and this one doesn't seem to accept an int as a new element (only wants Objects). So how do I go around fixing that problem? ...

j2me application doesn't work on Mobile Phone

I have developed one simple application in J2ME. Application just do simple HttpConnection and make only request. Here is the code for that : public void run() { System.out.println("Inside saveData"); HttpConnection hc = null; OutputStream dout = null; try { System.out.println("custName = " + custName); ...

net_rim_cldc not found

Hi, I am getting error as : module net_rim_cldc not found while debugging application on real device. I am using device Pearl 8100 with v4.5.0.81 and eclipse JDE plugin with component pack 4.5. I have read on forum that if there is difference between device software and development ide then this error occur, but i am using same versio...