Results 1 to 2 of 2
Thread: Midlet to call a j2me java class
- 05-12-2011, 10:43 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 4
- Rep Power
- 0
Midlet to call a j2me java class
Am trying to develop an application to dispaly a form containing textfields. Lets call this java class A. First, I have a welcome midlet (call it midlet B) that I will call java class A and the textfields appear on the emulator screen. How is this possible? If midlets can call one another, then will be easy. I would just make A a midlet then I call its startup method in B.
I have tried push registry after some blog but I have no idea of its working and given-up.
I welcome anyone with suggestions or a sample code.
Mutua
- 05-22-2011, 09:52 PM #2
Member
- Join Date
- Oct 2010
- Posts
- 32
- Rep Power
- 0
Hi, Kakinyim,
I have got a suggestion for u....as far as I understood reading your problem, I think that your midlet B doesn't do anything important other than showing a welcome screen..and you want to show and then do th actual vital work with textfields and stuffs by calling midlet A. If I have understood this correctly, so why don't you integrate these two things in a single midlet? The welcome screen will show up with the start of the midlet (in a form in the midlet) and after some CommandAction or some interval of time (using Thread.sleep() method), you will create another form (say form2) that you want to show (the contents of class A) using display.setCurrent(form2). So it'll replace the welcome page form and will show the current form, without going into the hurdles of midlet switching...and this is how things should work!...
So try this and come back..
Good luck :)
Similar Threads
-
Bluetooth connection not working on US Nokia phones from J2ME Midlet (MIDP 2.0)
By yash2009 in forum CLDC and MIDPReplies: 1Last Post: 08-07-2009, 09:30 AM -
Java class to midlet
By Dato0011 in forum NetBeansReplies: 0Last Post: 03-14-2009, 09:59 PM -
J2ME MIDlet snippet
By Java Tip in forum Java TipReplies: 0Last Post: 11-21-2007, 11:41 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks