Midlet autostart question
Hey,
I have a question. I wish to know how the MIDlet was started, manually or by touching the appropriate tag.
I tried with the following code(it works on Nokia 6131NFC)..
DiscoveryManager dm = DiscoveryManager.getInstance();
if (dm.getProperty("LaunchType").toLowerCase().equals("manual"))
{
getDisplay().setCurrent(screen1);
}
else
{
getDisplay().setCurrent(screen2);
}
...and it doesn't matter how the midlet is started, it always shows the screen1.
I have also tried with puting the flag in recordDetected method and got the same result as above.
So how can one determine the way the midlet was started?
Regards,
Samo