×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Luleå, Sweden
    Posts
    36

    Lightbulb Distinguish Between Auto-Launch and Ordinary Launch

    Hi

    How can I tell my application that the application launched by RFID Tag or User launched it by himself?

    I want to show different screens on Auto-Launch and Ordinary Launch.

    I can do neccessary operations that are required through Auto-Launch but I cannot handle ordinary launch.

    Any idea how to do that?

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2005
    Posts
    21

    Re: Distinguish Between Auto-Launch and Ordinary Launch

    Hi,

    You can use getProperty method with parameter "LaunchType" of DiscoveryManager to determine how your MIDlet was launched (dm.getProperty("LaunchType");). "touch" or "manual" will be returned depending on how the MIDlet was launched.

    Also check http://wiki.forum.nokia.com/index.ph...gistry_example

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    6

    Re: Distinguish Between Auto-Launch and Ordinary Launch

    I just found that on the emulator (SDK 1.1)

    DiscoveryManager discoveryManager = DiscoveryManager.getInstance();
    String launchType = discoveryManager.getProperty("LaunchType");

    returns null.

    On the real device the code works well.

  4. #4
    Registered User
    Join Date
    May 2007
    Location
    Luleå, Sweden
    Posts
    36

    Re: Distinguish Between Auto-Launch and Ordinary Launch

    Yeah its true. It really bothers you if you want to run and test application on Emulator. For this, you have to make some different logic or comment your code to be worked on Emulator.

    I can say, its one of the limitations of emulator.

Posting Permissions

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