This is a step-by-step instruction how to limit launching the MIDlet. Suppose you have a simple MIDlet (like below).
|
|
|
And you want the MIDlet to be run only 2 times.
After you start the program, you will see the main window.
Enter the path to the MIDlet JAR file in the "JAR File" field. You can also use the
button to select the path to the file.
The file path is "C:\work\SimpleMIDlet.jar" in this tutorial.
Enter the path to the folder the new MIDlet JAR file will be saved to. You can also use the
button to select the path to the file.
The folder path is "C:\work\output" in this tutorial.
Click the
button
in main window and select the protection type.
The protection type is "Launch count limitation".

Click the
button to return to the main window.
Click the
button in main window.
After that you will see the options dialog box.

Modify the options. Specify text for the startup screen ("This is a sample MIDlet. It can be run only 2 times.").
Specify the delay type ("Progress bar").
Specify the delay time (10 sec.).
Specify the number of launches (2).

Click the
button to return to the main window.
Click the
button in the main window.

The modified MIDlet has been saved. The new JAR file name is "C:\work\protected\SimpleMIDlet.jar" in this tutorial.
Launch the new MIDlet in order to test it.
The first launch.
|
|
|
|
|
The second launch.
|
|
|
|
|
The third launch.
|
|
|
That's exactly what it is supposed to be.
Copyright © 2007-2008 Hitonic. All Rights Reserved.