×

Discussion Board

Results 1 to 3 of 3

Thread: midlets

  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    158

    midlets

    i have seen same questions asked several times...but i cant get wat they say...pl someone help me
    1.midlet1 contains textfield,choice group etc
    2.midlet2 contains similar to above with some additional things and deleted things....
    3.database using rms
    4.messaging
    control flow order is midlet1->midlet2->(if add to database)database->messaging
    i have created created everything in different midlets similar to html pages.....
    i dont know how to join it....i heard of push registry uses....
    is it anyother way.....
    i embed my code here

  2. #2
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    158

    Re: midlets

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;

    /**
    * @author selvakumar
    */
    public class databasevbloodbank extends MIDlet implements CommandListener {

    Display display;
    public Form mainform1;
    ChoiceGroup group;

    private Command exit;
    private TextField firstname;
    private TextField phonenumber;
    private TextField lastname;
    private TextField emailid;
    private Displayable previous;
    public databasevbloodbank(){
    display=Display.getDisplay(this);
    exit=new Command("exit",Command.EXIT,1);
    mainform1=new Form("virtual blood bank:Update Database");
    group=new ChoiceGroup("select the blood group",Choice.EXCLUSIVE,new String[]{"O+","A","B","AB"},null);
    firstname=new TextField("First Name", " ",15,TextField.ANY);
    lastname=new TextField("Last Name"," ",10,TextField.ANY);
    phonenumber=new TextField("Phone Number"," ",12,TextField.ANY);
    emailid=new TextField("Email ID"," ",30,TextField.EMAILADDR);
    mainform1.append(group);
    mainform1.append(firstname);
    mainform1.append(lastname);
    mainform1.append(phonenumber);
    mainform1.append(emailid);
    mainform1.addCommand(exit);
    mainform1.setCommandListener(this);
    }
    public void startApp() {
    display.setCurrent(mainform1);

    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
    public void commandAction(Command c,Displayable previouspage)
    {
    if(c==exit)
    {
    destroyApp(true);
    notifyDestroyed();
    }

    }
    }

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    158

    Re: midlets

    http://discussion.forum.nokia.com/fo...t=start+midlet
    i dont get wat he says
    What I usually do is make my MIDlet subclasses just an "application-lifetime-skeleton". They don't have any of the actual functionality which is usually in one or more main classes. That way you don't actually have to start any new MIDlets, just load and initiate one of the other main classes.

Similar Threads

  1. Class used by multiple MIDlets in a MIDlet suite
    By hajj00 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-05-13, 17:36
  2. Remove Mutiple MIDlets before startup (S40)
    By mmalam1 in forum Mobile Java General
    Replies: 1
    Last Post: 2006-08-27, 02:07
  3. How can we call midlets from another midlets
    By Rameshwari in forum Mobile Java General
    Replies: 1
    Last Post: 2006-06-22, 16:53
  4. Midlet's uid, Symbian 3rd edition
    By viktor_m in forum Symbian
    Replies: 0
    Last Post: 2006-03-06, 10:15
  5. Unable install midlets larger then 10kb into the 6310i
    By Arturas in forum Mobile Java General
    Replies: 1
    Last Post: 2002-12-03, 10:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×