Launching a MIDlet from another

Hi All!
I need to create a menu.When one selects a particular option they should be redirected to another midlet .Need basics of creating forms .
Desperately need for a project whose deadline is on our head .
How do i go abt this ?
Thanks .

jhd
i, this is not big problem and u can meet ur deadline easily if i m not late to answer u.
if u want to create a main menu when u are launching and first screan appear with your midlet name then there is way to create different Midlet
and then if u are using wireless toolkit you have to goto
Settings>Midlet where u find options for that and u can set ur midlet classpath there.
you can see the game demo given in wtk23's apps folder.
and if u are suppose to wanting that ur application start with main menu and after selecting one u r agin going to nested menu and from there u want to call other midlet then u can use this code
class midlet1 extends Midlet
which u want to call from
class midlet2 extends Midlet
//here u have to destroy midlet2
//create object of midlet1
midlet1 m = midlet1();
this will simplycall to midlet1 and new object were created for that
with new display........
but for standard coding u have to use any displayable item(Form,List..)
and when u are selecting menu u just setCurrent display to this new displayble item and will work fine.
Regards,
jasmit vala

Similar Messages

  • Launch a midlet from another midlet

    I need to launch a midlet from another midlet that is running, is it posible and would it be?
    regards in advance

    [rpalomino],
    You are out of luck here. The current CLDC/MIDP specification permits one only MIDlet jar file to be run at a given point in time. You can package as many class files as you wish but only one MIDlet can be launched by the kVM.
    If your purpose is to write MIDlet applications that access the same data resource, then instead of launching multiple MIDlets (which is not possible), you can use the RMS data store for persistent information across the different MIDlet class file application.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • How to embed and launch ipa file from another ipa package created using Air for iOS

    Hi Guys,
    Anybody out there knowing how to embed and launch ipa file from another ipa package created using Air for iOS ?
    I am having 1 ipa file created using Xcode, Now i need to include that file in my ipa Package which is created using Flash CS 5.5 and Air for iOS. Also i need to know how to open my 1st ipa file from AS3 ?
    Thanks,

    Hi Sir,
    Thanks for your reply.
    But in that case user need to download 2 applications right. I need user to download my parent application created using Flash and that package contain one more ipa created using Xcode, so from my parent app only user should able to open my 2nd app. Is there any way to do that?
    Ps:  I am not talking about in-app but 2 individual apps inside one package.

  • Can invoke MIDlet from another MIDlet?

    Dear friends,
    I have two MIDlet i want to invoke one MIDlet from another MIDlet based on user input. Is J2ME support this feature or not? please explain in detail.
    Ex:
    MIDlet1.java
    MIDlet2.java
    i want to access MIDlet2 from MIDlet1 as,
    MIDlet1 obj = new MIDlet2();
    obj.startApp();
    i tried this but i didn't get any compilation error but it won't execute at run time.
    please explain me if any one faced and resolve similar error.
    Regards,
    guna.

    Hi,
    I wants to invoke MIDlet from another MIDlet for the following reason,
    I developed a simple chat application. The MIDlets are, Sender & Receier.
    Sender home window, will collect sender name,receiver name and number.
    Then open another window for Messaging.
    On receiver end, after receive the message the user can reply to the message,
    on Reply i have to invoke Sender application which have user information (sender name,receiver name & number) to get sender name. Once i open Sender window it will take care necessary action to send the message.
    Please explain me now, how to call Sender MIDlet from Receiver MIDlet.
    Regards
    guna.

  • Need to run midlet from another midlet

    Need to run midlet from another midlet
    How to do it?
    In my midlet user get link to web-page, and i want to start mobile browser with this page.

    Hi,
    In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
    Sunil
    Software Developer - J2ME

  • Call Midlet from another Mitlet suite

    I know that this topic has been discussed previously, but all threads I have seen are just discussing to call a Midlet in the same Midlet suit. My question is:
    Can I find out what Midlets are installed and can I call a Midlet in another Midlet suite using MIDP 2.0? And if possible, how can I do this?
    Thanks in advance.
    Stephan

    Explain in more detail, please. When I cause from one MIDlet another MIDlet I receive:
    java.lang.SecurityException: Application not authorized to access the restricted API
    at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+40)
    at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+7)
    at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
    ...

  • Invoking a MIDlet from another MIdlet

    Hi all,
    Consider this scenario,
    1. midlet A is running
    2. runtime memory of A contains jad and jar files of midlet B in two byte arrays.
    (assume some native methods which allows the applications to install, launch and remove midlet and midlet suites by passing the jad and jar files.)
    3. midlet A uses launchMIDletsuite method for launching the midlet B by passing the jad and jar files.
    4. what will be the state of A after B is launched. (running?, waiting?, destroyed?)5. Whether B is a subset of A. ie. Will A gets control back after B is destroyed.
    6. if not, is there any way to get the control back to A?
    Thanks in Advance
    Nidheesh.P

    I can't see any needs of seperate MIDlets here.
    You can use Canvases and Forms.
    Your app could start with a authentication Form. If the user is invalid, show hime the registration form.

  • Launching a JFrame from another JFrame

    Hi,
    I have a JFrame containing a menu(buttons). When I click on a button, I want that it launches another JFrame.
    I tried making use of the code
    Process p = Runtime.getRuntime().exec("java CreateStudentRecord");
    where CreateStudentRecord is the JFrame I want to launch. however this did not work.
    Can anyone help me find out how I can launch another JFrame when I click on a button within another JFrame.
    Thanks,
    Rahul.

    How about just using the following:
    private CreateStudentRecord csr;
    JButton b1 = new JButton("New Student Record");
    b1.addActionListener( new ActionListener() {
         public void actionPerformed(ActionEvent e){
              csr = new CreateStudentRecord().show();
    Rick

  • How to call a view from another

    Hello Experts,
            I have embedded a view (let us call this view 'A') in standard homepage. This works fine. Now on click of a button on this embedded view I want to launch another view that is also created by me, in the same component in which I had created view A. But I do not know how to launch this second view
         Could you please tell me how to call/launch a view from another on click of a button?
    Regards,
    Prafful

    Hello Prafful,
    I guess by launching you mean substituting one view by another. It can be achieved by declaring a navigational link in the runtime repository from one view to another. You have to create an event handler on the button and outbound plug in your view using the wizard. Then, on the event handler you call an outbound plug where you trigger a navigation using this navigational link and the view A will be replaced by view B.
    A code which needs to be done in outbound plug:
    me->view_manager->navigate(
    source_rep_view = me->rep_view
    outbound_plug   = 'NAVLINKNAME'
    data_collection = iv_data_collection ).
    Best Regards,
    Yevgen

  • Call Midlets from a Wap Link

    Hi,
    I am trying to find out if it's possible to launch a midlet from a WAP page? If yes , can someone please tell me how this oculd be done.
    Thanks!

    Thanks for replying. I read somewhere that this might be possible through the Push Registry api . Has anyone used that API? There wasnt much information on how this could be done though.
    Please let me know if so. This is urgent.
    Help needed! Thanks.

  • How can I pass arguments from one MIDlet to another MIDlet

    Hi everybody !
    Can anybody help me in knowing that how can I pass the parameters from one
    MIDlets to another one in same application.
    I am devloping a application in which I am using more than two MIDlet and I
    want to transfer Parameter from one MIDlet to another one.
    I just explain what I have done....
    I made a MIDlet "A" and "B" in the same project using NetBeans IDE.
    In MIDlet "A" I create the Object of MIDlet "B" so that the constructor of
    MIDlet "B" is called and parameter can be transferred.
    But when I run the program it shows me two MIDlet on the screen, that I
    doesn't need.
    Suggestion are most welcome....
    Thanks in advance
    Regards
    Bhagwat

    If you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.

  • Launching an AIR app from another (when offline)?

    I have a pair of AIR applications that are meant to work
    together as part of an application suite. One feature is that a
    user should be able to click a button in APP_1 and launch APP_2 (if
    installed). To do this I created a "LaunchButton.swf" that loads
    "air.swf". This works GREAT when the user is online and "air.swf"
    is able to be loaded from "
    http://airdownload.adobe.com/air/browserapi/air.swf".
    I tried to copy "air.swf" locally and use that instance but I am
    guessing that it doesn't work due to security restrictions.
    If there are any AIR engineers reading this (Oliver?) please
    let me know if there is a solution to "Launching an AIR app from
    another (when offline)?"
    Thanks!

    I think theoretically it shouldn't work, and doesn't by the
    response you give. Remember a functional work around isn't always a
    fix. What you've essentially done is loaded the air.swf into a
    sandbox bridge, bridging it between a web sandbox and an
    application sandbox, therefore you're able to call its methods
    without security errors. However, if the air.swf loads in another
    swf, maybe a helper swf, you won't be able to access any methods in
    that swf, neither will the air.swf. To my understanding, it's not
    grandfathered into the sandbox bridge, but retains its web sandbox.
    Before going crazy about the bad news I may have just given,
    wait until Ted returns to give you a response. I could be way off
    par here :) Good luck!

  • No color toolbar icons from standard launch, ok when launched from another app.

    When launched from another app like google earth the toolbar icons are in color.
    When launched normally the icons have no colors.
    Currently Thunderbird 24.6.0

    another experiment.
    When you have the colour icons, Select Help menu > about (what version is this) when you have the black do the same and see if it is different versions. (pressing F10 will make them menu bar visible if it is not.)
    Thunderbirds icons changes from living colour to black and white quite a few versions ago.
    Reasons for color are;
    * An old version
    * An add-on by way of a Theme
    * The running of Thunderbird in XP compatibility mode in Windows

  • Problem with calling a midlet within another midlet

    hello friends,
    can a create an instance of a midlet within another midlet.i tried to call , but i have got a Security exception. plz comment on this ..
    regards..

    "For security reasons, it is assumed that MIDlets within a MIDletSuite are packaged
    together for a reason and should be able to interoperate. What's implied here is that the
    MIDlets share a name space; in other words, each MIDlet in the MidletSuite can "see" one
    another. Because they can see one another, they can launch one another (Class.forName
    metaphor).
    In contrast, one MIDletSuite cannot launch another MIDletSuite. That's because they do not
    share name spaces. Since the CLDC+MIDP does not have a security manager (too big and
    complex for small devices), the MIDP expert group felt it more prudent to limit the interaction
    of downloaded applications to those that are packaged together by the provider."extract from Sun
    see http://developers.sun.com/mobility/midp/articles/pushreg/ for infos to launch MIDlets...

  • Problem in invoking a servlet from another PC

    hi
    i am trying to invoke a servlet running on apache tomcat 5.0.28 from another PC, my j2me wireless toolkit is on one PC and it runs a MIDlet that invokes a servlet on another PC, but am getting an exception connectionNotFound....
    both the computers are on LAN, what do i do?
    Need guidance

    No, i think tomcat server is enough.. have u checked your servlet from browser?
    I got the same error in black berry application and at that time i found that its due to servlet config in web.xml
    Have u configured your servlet in web.xml?
    One suggestion.. change your URL to www.google.com and then run your MIDlet.. it confermed that your midlet is OK
    Http request is fine to send data from your WTK.
    About apache http "NO IDEA"
    Thks

Maybe you are looking for

  • How can I disable a hover link in the phone view size?

    Hola How can I disable a hover link in the phone view size? I got this site where I got a gallery page, the pics have a hover/link state (?) where as you click in them they will open a bigger pic. (Prettyphoto) Thanks good. What I want to do, is that

  • I deleted my ibooks author file but the preview is still available on my ipad, can I get the ibook back into ibooks author to continue to edit?

    I deleted my ibooks author file but the preview is still available on my ipad, can I get the ibook back into ibooks author to continue to edit? I have not published anything, just previewed on my ipad but the file seems to be deleted from my imac whi

  • Wireless key /password not working

    So, I'm working away happily on my MBA when the internet drops off.  The Hub3 is glowing orange so I just switch over to the BTwifi to finish off sending my email.  By then the BB hub is all blue again so I go back to my own wifi service but no dice.

  • Validation widget don't work in regions?

    Is it true, Validation Widget don't work in regions? If I create a text validation widget, then wrap it in a region for xml data, the validation no longer functions for the widget. Is there something I'm missing here, or does it simply not work in th

  • Problems installing iOS 7.0.3 on iPhone 4S

    What a pain!  It hung during the update, got stuck in one of the verifying phases (while connected to iTunes), went into recovery mode, then I kept getting the "USB Device needs more power" error message, which messed up my restore.  Finally I plugge