How to create a MIDlet suite??

hello everyone !! I have an easy (I hope) question.How can I create the Midlet suite. For Instance I have to midlets and I want them to belong to the same midle suite in order to be able to access the private data storage (in some sense common for both of them - some recordStore ). Thank you for any help. All the best:)

Hi
Make sure u seperate each midlets package name and U have to specify the both midlet names in the jad file instead of one.Name jad nad jar files appropriately which suits for both names.For ex in my it was MeasurmentHealthCalculator since i have two midlets Measurement and HealthCalculator
Ravi

Similar Messages

  • Installing my MIDlet suite to my Nokia Mobile (Help .!)

    I have created a MIDlet suite with 4 MIDlets in it..
    I used the Sun Wireless ToolKit in NetBeans 6.0
    Now, I want the MIDlet suite to run on my Nokia Mobile which I own.
    What is the process .?
    And do I have to use any specialized Nokia tool kit for this purpose ? (Since I want the MIDlet to run in my Nokia 6070)
    Please help me.

    As long as you app complies to the requirements set by Nokia, you should be able to load it up without problems. Nokia is great by giving very detailed info on these aspects. I've loaded my Nokia with specific apps tailored with Nokia SDKs and I have used example apps from Sun. There might be other considerations, but the MIDP version and the CLDC version are the main constraints. Everything depends on what you want to do with the app...
    Cheers!
    edit: Another main constraint is the size of the .jar file. Nokia suggests using a compression tool.
    Edited by: HunterCottage on May 20, 2008 8:52 AM

  • How to create an instance of midlet with in a midlet

    Hi all,
    I have 5 midlets in the same project (midlet suite). I need one of the midlets (login midlet) to start and when login is verified i want to display list of the remaining midlets which can be launched as per user's chioce.
    My query is, how can i create an instance of the other midlet within the login midlet after login is verified.
    Any response is highly appreciated.
    Birhanu

    You can't do that! You don;t need all those midlets anyway if you only have one application. You'll just have to put the needed code in a non Midlet class.

  • How to create two instances of a midlet

    Hi!
    I've programmed a MIDlet that can organize a tournament (save player datas, show rankings...). Right now it can only manage one tournament at a time but now I'd like to be able to manage two simultaneous. I designed the midlet like the famous "Smarticket"-Midlet: a "wrapper" midlet class and a controller class that handles the events. For those of you who dont know the Smartticket example here is my subclass of MIDlet:
    public class MagicTOMIDlet extends javax.microedition.midlet.MIDlet {
        private TOUIController controller;
        public void startApp() {
            new Thread() {
                public void run() {
                    controller = new TOUIController(MagicTOMIDlet.this);
                    controller.init(); // setCurrents() to MainMenu - the entry point of the program
            }.start();
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
    }The problem is: How can I create two midlets so that I can switch between the 2 tournaments to enter for example new Data (resuts...)? The tournaments don't affect each other, they just have to run simultaneously. My phone is a Nokia 3510i and it can't just run 2 copies of the MIDlet.
    I had two solutions in mind but both didn't work:
    1.) Declare 2 controller classes controller1 and controller2 and a switch Command, that can switch between both. After starting the midlet ask the user if he wants to organize one or two tournaments.
    Here is the code for the MIDlet subclass:
    public class MagicTOMIDlet extends MIDlet implements CommandListener {
        public TOUIController controller1, controller2;
        private List list;
        private Command okCommand;
        private Command exitCommand;
        private Display display;
        private Thread t1, t2;
        private MagicTOMIDlet midlet;
        public void startApp() {
            display = Display.getDisplay(this);
            list = new List("Choose # of Drafts", List.IMPLICIT);
            okCommand = new Command("OK", Command.OK, 1);
            exitCommand = new Command("Exit", Command.EXIT, 5);
            list.append("1 Draft", null);
            list.append("2 Drafts", null);
            list.addCommand(okCommand);
            list.addCommand(exitCommand);
            list.setCommandListener(this);
            display.setCurrent(list);
        public void commandAction(Command command, Displayable displayable) {
            if ((command == okCommand) || (command == List.SELECT_COMMAND)) {
                String label = list.getString(list.getSelectedIndex());
                if (label.equals("1 Draft")) {
                    t1 =  new Thread() {
                        public void run() {
                            midlet.controller1 = new TOUIController(midlet, TOUIController.DRAFT_SINGLE);
                            midlet.controller1.init();
                    t1.start();
                } else if (label.equals("2 Drafts")) {
                    t1 = new Thread() {
                        public void run() {
                            midlet.controller1 = new TOUIController(midlet, TOUIController.DRAFT_1);
                            midlet.controller1.init();
                    t2 = new Thread() {
                        public void run() {
                            midlet.controller2 = new TOUIController(midlet, TOUIController.DRAFT_2);
                            midlet.controller2.init();
                    t2.start();
                    t1.start();
            } else if (command == exitCommand) {
                destroyApp(true);
        }And here parts of the controller class:
    public class TOUIController implements CommandListener {
        public TOUIController(MagicTOMIDlet midlet, byte id) {
            this.midlet = midlet;
            this.draftId = id; // DRAFT_1 = 1, DRAFT_2 = 2, DRAFT_SINGLE = 0
            if (id == DRAFT_SINGLE) {
                singleDraft = true;
            } else if (id == DRAFT_1) {
                otherDraftId = DRAFT_2;
                singleDraft = false;
            } else if (id == DRAFT_2) {
                otherDraftId = DRAFT_1;
                singleDraft = false;
        public void commandAction(Command command, Displayable displayable) {
          else if (command == switchCommand) {
                if (draftId == DRAFT_1) {
                    setCurrent(midlet.controller2.display.getCurrent());
                } else if (draftId == DRAFT_2) {
                    setCurrent(midlet.controller1.display.getCurrent());
        }Somehow it doesn't work. If I try to Switch I land in the MainMenu of the same Tournament (here called: draft).
    My 2nd solution would be to declare two midlets in MagicTOMIDlet and to pass both midlets to the controller class:
    public class MagicTOMIDlet extends MIDlet implements CommandListener {
        public TOUIController controller;
        private List list;
        private Command okCommand;
        private Command exitCommand;
        private Display display;
        private Thread t1, t2;
        public MagicTOMIDlet midlet1;
        public MagicTOMIDlet midlet2;
        public MagicTOMIDlet() {
            midlet1 = this;
            midlet2 = this;
        public void startApp() {
            // as above
        public void commandAction(Command command, Displayable displayable) {
            if ((command == okCommand) || (command == List.SELECT_COMMAND)) {
                String label = list.getString(list.getSelectedIndex());
                if (label.equals("1 Draft")) {
                    t1 =  new Thread() {
                        public void run() {
                            midlet1.controller = new TOUIController(midlet1, TOUIController.DRAFT_SINGLE);
                            midlet1.controller.init();
                    t1.start();
                } else if (label.equals("2 Drafts")) {
                    t1 = new Thread() {
                        public void run() {
                            midlet1.controller = new TOUIController(midlet1, midlet2, TOUIController.DRAFT_1);
                            midlet1.controller.init();
                    t2 = new Thread() {
                        public void run() {
                            midlet2.controller = new TOUIController(midlet2, midlet1, TOUIController.DRAFT_2);
                            midlet2.controller.init();
                    t2.start();
                    t1.start();
    public class TOUIController implements CommandListener {
        public TOUIController(MagicTOMIDlet midlet, MagicTOMIDlet otherMidlet, byte id) {
            this.midlet = midlet;
            this.otherMidlet = otherMidlet;
            this.draftId = id;
            if (id == DRAFT_SINGLE) {
                singleDraft = true;
            } else if (id == DRAFT_1) {
                otherDraftId = DRAFT_2;
                singleDraft = false;
            } else if (id == DRAFT_2) {
                otherDraftId = DRAFT_1;
                singleDraft = false;
        public void commandAction(Command command, Displayable displayable) {
            } else if (command == switchCommand) {
                setCurrent(otherMidlet.controller.display.getCurrent());
    }It same the same wrong behaviour as my first solution.
    I'm tankful for any advise or solution you might give me!
    Marko

    The first way should be correct, but what do these
    lines:
    setCurrent(midlet.controller2.display.getCurrent());
    setCurrent(midlet.controller1.display.getCurrent());do?Sorry, I didn't want to make the post too long...
    public void setCurrent(Displayable displayable) {
            display.setCurrent(displayable);
        }If you are sure that my 1st solution should work I'll try to find the error.
    Thanks!
    Marko

  • How to Create a BOM in an E-Business Suite

    Hi,
    I need help, how to create BOM in an E-Business Suite in a step wise or send me any related links
    Regards
    Srini

    Hello Srini,
    Prerequisite for creating a BOM is that Assembly and Components item should be created in your master organization and associated to your organization.
    Responsibility Bills of materials > Bills > Bills : in the header block, you enter the assembly, in the detail block, you enter components and quantity of components to build the assembly.
    You have to create you BOM levle by level .

  • How to Create a Cross Reference of an item  in an E-Business Suite

    Hi ,
    I need Help ,how to Create a cross reference of an item in an E-Business Suite
    Regards
    Srini

    Hello Srini,
    Prerequisite to create a cross reference for an item in eBusiness suite is that the item should be created in the master organization and assigned to your organization.
    Navigate to screen Inventory > Items > Cross references. Enter a name for your cross reference.
    Then, click on Assign : a screen is opened. In this screen, you can enter Item and Cross reference value. Note that a cross reference can be defined for an organization or common to all organizations.
    Another kind of cross reference you can create is Customer item (it defines how a customer designates your item). It can be defined through screen
    Inventory > Customer item > Customer Item and Customer item cross references.
    Please refer to Inventory user guide for more detail about this functionalities.

  • How to create midlet file in j2se project ?

    Hi All,
    I am new in j2me. My main aim is Send the data mobile to Pc and Vice versa.
    I am using windows xp, Nokia E50 , netbeans 6.1 IDE.
    My requirement is , I want set Pc as server and Mobile is client,
    now i want to create 2 project or I can manage single class,
    In Netbeans Pc server program developed by j2se and Mobile client is Mobility application.
    It is possible to both are created at a same project ? .
    I want to created the midlet class is created on j2se project and while run my midlet from j2se project midlet was run
    on WTK Emulator.
    Please any one tell me, my requirements are possible, if yes then how to implement both are same project,
    Thanks is advance,
    With Regards,
    Ganesh kumar

    Hi Martin,
    > you can add a data-source-aliases.xml file to your
    > META-INF folder
    > so what is the name of the Default datasource?
    See http://help.sap.com/saphelp_nw04/helpdata/en/c3/4f7770b21b9f459cb13424296726b1/frameset.htm - you can generically use a variable.
    > is this applicable to EP projects?
    I won't expect this (as a portal project isn't a J2EE application itself but part of another).
    Anyhow, the datasources (and with them their alias within the J2EE engine) are managed via VisualAdmin, see http://help.sap.com/saphelp_nw04/helpdata/en/11/4963a6cf52ad429b3b3b65e003f2d1/frameset.htm
    Hope it helps
    Detlev
    PS: Please consider to reward points if answers are helpful. Thanks in advance!

  • How to create a new user id in OID for Oracle Collab suite File System

    Dear Friends,
    I want to know how to create a new user id in the oracle internet directory where i can use that user for the new subscription of the oracle collabration suite file system..
    Please do the needfull and thanks in advance...
    With warm regards
    R.Prasad

    Hi!
    The way you suggest should not be used.
    A CS user will be created as a normal OID user and will receive the CS attributes in a different subtree later during the provisioning.
    For creating CS users use oesuser and uniuser. Files provisioning will work in a different manner anyway.
    cu
    Andreas

  • How to create users for B2B console in SOA Suite 11g?

    Hi,
    I have installed SOA Suite 11g and created a new user in weblogic server and assigned groups Deployers, Monitors & Operators. On trying to login(http://hostname:port/b2bconsole) using this new user, im not able to login and the below error is logged.
    "There are no trading partners for this user".
    Can someone plesae guide me on how to create a new user for B2B as i dont want to grant adminstrators group to developers.
    Thanks,

    Hi,
    Please login as the weblogic server boot user into b2bconsole and then go to users tab of the host trading partner
    and search for the newly added user [ provide full username ]
    and then assign the role as administrator / monitor from there.
    once this is done.. the newly added user should be able to login to the b2bconsole..
    monitors have read only access and less priveledges..
    Regards,
    Vijay

  • How to create Headervariable for File adapter in 11g SOA Suite?

    Hi All
    My process in reading file and I wanted to know the exact name of the File.
    In 10g, we have fileAdapterInboundHeader.wsdl and create HeaderVariable using message type used in this wsdl and can get file and directory name in this variable But in 11g we dont have any wsdl like this.
    Can anybody give me some idea how to create Headervariable for Inbound file adapter to get file name?
    Thanks
    Vibzz

    Hi,
    Look at this document : [Oracle JCA Adapter for Files/FTP|http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAFJCCE]
    Romain.

  • How can i open a midlet in another midlet-suit?

    My question is : i want to creat a midlet A. In this midlet ,i can download another midlet B and install it. The new downloaded midlet B ican be presented in a part of midlet A. In midlet A, i can open midlet B,even control it.
    Is my idea impossible? or not?
    i have read something about this topic,the answer is impossible. Because the CLDC is not support this method. But i am not sure it.If u know something about these ,please give me a answer!thank u!

    It is possible if both your MIDlets are in the same MIDletSuite - see http://forum.java.sun.com/thread.jspa?forumID=76&threadID=290808. If it's 2 MIDletSuites, then it's impossible.
    Peter

  • How to access midlet suite from ms-dos?

    I tried to type in dos:
    "j2mer2 MyCanvasMidlet"
    but it doesn't appear the screen "select one to launch" for the list of midlets in the midlet suite.
    it can display the screen when I user the tool kit though.

    you can't do this (run a midlet from dos).
    use the j2me wireless toolkit.

  • How to create instance of user defined suite

    I have create one user defined suite interface (ISuite) and inherite it to IsuiteASB and IsuiteCSB . The purpose of creating user defined suite is to provide hyphenation for selected text. I want to add a method which will detect whether a text has been selected by user or not , if selected then I am calling one hyphator function. I am not able to create an instance of user defined suite . I am using following syntax: <br />in UpdateActionState I am using <br />   InterfacePtr<ISuite>suite(ac->GetContextSelection(),UseDefaultIID()); <br /><br />in one user defined method I am using <br />  InterfacePtr<ISuite>suite(Utils<ISelectionUtils>()->GetActiveSelection() , UseDefaultIID()); <br /><br />Both calls unsuccessfull. <br /><br />Which Interface I should use to detect whether Text has been selected by user or ITextUtils or any other. <br />Please tell me the preoper way to create interface suite and create instance of it. <br />Thank you.

    I've seen this wording before ... Wait -- you must be referring to the SDK. Better post your question in the SDK forum, we're just helpless end-users, and in this case, clueless as well.

  • How to run a midlet on a real device and  other questions!!VERY VERY URGENT

    PLEASE I NEED HELP FOR ALL THESE DETAILS
    AS SOON AS POSSIBLE
    hi
    i would like to know the following details regarding
    J2ME:
    1. What is the size of a KVM(Kilobyte Virtual Machine)?
    2. What would be approximately the memory size
    of a mobile phone?
    3. How do i transfer my midlet application developed
    with the help of a J2ME tool kit to a mobile device?
    4. Should the device to which i am transferring
    be MIDP compliant alone i.e as of now
    i can transfer my midlet application only
    to an MIDP compliant mobile device?Or rather
    what are the in-built features/softwares/specification
    a mobile device should have before i transfer
    a midlet to a mobile device??
    5.Suppose i have written midlets...and put them
    in .jad and .jar files(midlet suite has been created).
    Now suppose i have to download it to my
    mobile phone,how do i do it?
    And if other people have to download it to
    thier mobile device...i need to put it on the web-site
    right?How do actually put my midlet to a web-site?
    Are there any steps involved for all that?
    6.Will the mobile device have ENOUGH MEMORY
    for executing the midlet which i have created
    considering the memory constraints of a mobile
    device.Also the fact that the KVM also
    would take up a lot of space though it is measured
    in kilobytes
    thanx in advance

    2. What would be approximately the memory size
    of a mobile phone?
    This depends on the phone vendors.But the min size should me 128kb.Normally it should be 128 to 512 kb.
    3. How do i transfer my midlet application developed
    with the help of a J2ME tool kit to a mobile device?
    There no provision to do this with j2mewtk.
    Once angin this depends on the phone vendors.If the phone supports to download from a site then you can directly download it from that site or you have to connect to pc(you have to install the Java Application Manger) and then you can do it by using a serial cable.
    4. Should the device to which i am transferring
    be MIDP compliant alone i.e as of now
    i can transfer my midlet application only
    to an MIDP compliant mobile device?Or rather
    what are the in-built features/softwares/specification
    a mobile device should have before i transfer
    a midlet to a mobile device??
    The device must be j2me enable.ie midp/cldc compatble.Then you can download the application on to the device.
    5.Suppose i have written midlets...and put them
    in .jad and .jar files(midlet suite has been created).
    Now suppose i have to download it to my
    mobile phone,how do i do it?
    And if other people have to download it to
    thier mobile device...i need to put it on the web-site
    right?How do actually put my midlet to a web-site?
    Are there any steps involved for all that?
    How to download i already explained in q3.
    If you place the .jad and .jar in www.j2me.com/app/
    then In your jad you must give the url of the midlet.
    Then any one can download your application.
    6.Will the mobile device have ENOUGH MEMORY
    for executing the midlet which i have created
    considering the memory constraints of a mobile
    device.Also the fact that the KVM also
    would take up a lot of space though it is measured
    in kilobytes
    Once again This also depends on the phone vendors only.For motorola i85 they support 50kb, NTTDoCoMo phones they support only 10kb size of your application.
    All The Best
    Gone anything worng plz let me know
    koka

  • Communication between MIDlets within the MIDlet suite.

    Hi Friends,
    I'm using WTK 2.2. I'm planning to have two MIDlets within the same MIDlet suite.
    I had two MIDlet files but after creating the Jar package , In the display screen, Only one MIDlet is displayed for launching.
    Please guide me the steps. If there is a local variable int i; then, how I do check the value of the variable between the different MIDlets?
    Please guide me on the steps .
    Thanks,
    Ravi.

    Here's the source code:
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.*;
    public class A extends MIDlet
         public int i=10;
         public A()
         protected void startApp()
         protected void pauseApp()
         protected void destroyApp(boolean unconditional)
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.*;
    public class B extends MIDlet
         public B()
         protected void startApp()
              A a=new A();
              a.i=10;
              System.out.println(a.i); //throws SecurityException at this line.
         protected void pauseApp()
         protected void destroyApp(boolean unconditional)
    }

Maybe you are looking for

  • DB insert using xslt-exception

    Hi I am having a weird problem when i am trying to insert values in table using xslt my process data object xsd is <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="element1" type="dataCollection"/> </xsd:sequence> </xsd:c

  • CD Mix Project

    I am completely new to audio development on the MAC. My employer has set me up Logic Pro and Final Cut Pro which includes Soundtrack. To accommodate myself with my new tools and environment I am doing a simple mixing project that will include taking

  • No more After Effects CS6 trial?

    Hello, I went on the CS6 page to download a free trial of it, but there doesn't seem to be a trial link anymore. I could get the trial for CC, but I never plan on paying a monthly fee for software so the trial for that would be pointless. I prefer to

  • Images don't open when double clicked

    I have CS3 installed on a MacBook Pro.  Since installing Snow Leopard images will no longer open when double clicked or dragged onto the application icon.  The only way to open an image is through the open file menu. Any help would be greatly appreci

  • E18, google hangouts and virtual desktops

    I have a problem after upgrading to e18. When I receive a new message in the google hangouts (chrome extension) the window to change desktops pops up highlighting the desktop with that particular hangout. In e17 it worked all fine. I clicked that des