midp

Is HTTP PUT supported in J2ME?

I just noticed a strange thing in MIDP 2.0 API: The HttpConnection class apidocs make explicit references to methods GET, POST and HEAD, but no other methods. Does this mean that they are not supported? http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/io/HttpConnection.html I also tried checking the MIDP 2.0 spec, bu...

MIDP application, blocked by Connector.Open(..)

Hi all i've been having the worst time of my life trying to understand why this is happening, any input would be greatly appriciated. The code in question runs in a diffrent thread then the midlet, although the thread starts after the connection is made, I've tried the other way around and i end up at the same spot.. when executing thi...

Which library is used to access the Gmail emails using J2ME?

hi guys i want to develop gtalk application for the mobile please tell me the name of library that is used to access the gmail account thr J2ME ...

Using MIDP Canvas keyPressed / keyCode on BlackBerry to get Canvas.FIRE for trackball click

I have a MIDP application that I would like to run on BlackBerry devices. It's quite generic, the one gotcha is that when I override the Canvas keyPressed(int keyCode) method, I'm not capturing the trackpad click events. Normally you would use getGameAction(keyCode) == FIRE to capture the center of the navigation pad button on MIDP devi...

Trigonometry in CLDC 1.0 / MIDP 2.0 application

How can I use trigonometry in CLDC 1.0 / MIDP 2.0 application? I need "sin cos tan asin acos atan atan2" functions from standart Math library. Thanks ...

Java licensing model : When do I need to pay Sun for using their software?

Java licensing model : When do I need to pay Sun for using their software? ...

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); ...

amr not playing on samsung S5233A

Hello I am facing problem on playing recorded audio on S5233A. As its supporting audio capture and encoding supported audio/amr. From my application its successfully recording voice. but on play its not giving error but nothing happens. I tried recording using following strings, capture://audio capture://audio?encoding=amr capture:...

Running MIDlet in backgrond

I have developed one Reminder application which will remind a user at specific date and time for that I want the application to remind user at the time they entered.so if I exit from MIDlet how can application remind user? from Ashok Kateshiya India. ...

How to filter keys in MIDP TextField?

I have a TextField.PhoneNumber but I would like to filter out "+" character. Another words, I need a new constraint for TextField. Is there a way to define a new constraint with TextField? How about preventing keys from cycling on a mobilephone within a midp? Thanks in advance. ...

MIDP 2.0 TCP Client

Hi guys, I am trying to develop a TCP client that runs on mobile devices using MIDP 2.0 and CLDC 1.1. I am trying some sample code, and I have the following problem: I get a weird exception when I try to read the data back (From the MIDlet). This is my code: //Wait for an incoming message firstByte = in.read();...

MIDP 2.0 version issues: $method is undefined for $type

Hi, I've written a MIDlet that does several "advanced" things: fetching images from the web, resizing them, saving them on the phone, displaying them. This all works perfectly in the Nokia S60 3rd Edition FP1 emulator. This device has MIDP 2.0 and CLDC 1.1 support (also JSR75, which I need in order to save files). It also works as it s...

Developing a MIDlet for Windows Mobile

Is it possible to create a MIDP Application for Windows Mobile? In other words, I want to create a MIDlet and run it on a Windows Mobile Simulator(any). Thanks in Advance. ...

Weird RecordStore behavior when RecordStoreFullException occurs

Hello everyone! I'm developing a small J2ME application that displays bus stops timetables - they are stored as records in MIDP RecordStores. Sometimes records can not fit a single RecordStore, especially on record update - using setRecord method - a RecordStoreFullException occurs. I catch the exception, and try to write the record to...

Customising the title bar in Java ME

Is it possible to customise the title bar in Java ME? ...

Detect if touch device

Hello, I'm writing a MIDlet using the Kuix UI toolkit, and I want to make changes to the toolkit depending on whether the current device is a touch screen device. (These changes include making buttons bigger, for easier tapping.) Is there a way to detect whether the device has a touch screen using J2ME (MIDP 2)? [edit] as a (crappy) w...

j2me MIDP: detecting if phone has a data plan

Is there a way to determine what kind of data plan a device has so an app provides a less rich experience if a data plan is not available? I imagine the connector factory would still be able to return me an HTTPConnection but it would cost the user serious money for lots of data, and I'd like to be nice and prevent that. I thought ther...

How do we add ChoiceGroups dynamically in Java ME (CLDC) based on the answer to previous choice group values

I am developing a Java ME application for CLDC devices. I have a requirement where the questions are generated based on the previous response. I would start with one choicegroup and then based on the answer to this choices give another set of question to the user- Kind of Yes/No- If Yes this question or No this question. How do we do tha...

application not supported error while installing signed app

Hi I signed the application and trying to install on Nokia 5000 giving error "Application not supported". and failing download of application. I used the MIDP 2.0 and have given following application permission MIDlet-Permissions: javax.microedition.pim.ContactList.read, javax.microedition.io.Connector.http, javax.microedition.io.Conn...

Java ME Application running fine in Emulator but crashing when deployed to N70. Any way to identify the reason for crashing?

I have developed a Java ME application for CLDC platform. It works fine when executed in an emulator. But when i deploy it to my N70 phone the application doesn't start at all in the phone. In my application there are some 14 classes and am creating an instance of each and putting them in the vector on application start. The classes just...