Setting MIDlet permissions

You can define critical and optional MIDlet permissions for your MIDlet through Security Management. Besides default permissions, you can add custom permissions.

Note: The names of permissions are case sensitive.

To add MIDlet permissions
  1. In the file menu, select MTJ -> Application Security.
    The Security Management for MTJ Applications window opens.
  2. In the MTJ Project field, click Browse and select the MTJ project for which you want to add MIDlet permissions.
  3. Select the Permissions tab.

  4. To add a critical or optional permission:
    1. Click Add in the Critical MIDlet Permissions or Optional MIDlet Permissions area, respectively.
      The Add Permissions dialog is displayed.
    2. In the Add Permissions dialog, select the permission you want from the predefined list of permissions.
      The contents of the list depend on the profile the project is using.
    3. Click OK.
  5. To add a custom critical or optional permission:
    1. Click Add Custom in the Critical MIDlet Permissions or Optional MIDlet Permissions area, respectively.
      The Add Custom Permissions dialog is displayed.
    2. In the Add Custom Permissions dialog, define the custom permission you want to add.
    3. Click OK.
  6. Repeat Steps 4 and 5 as may times as necessary to add all the permissions you want.
  7. In the Security Management for MTJ Applications window, click Update the MIDP Application.
  8. Click Close.

To remove MIDlet permissions

  1. In the file menu, select MTJ -> Application Security.
    The Security Management for MTJ Applications window opens.
  2. Click Browse and select the MTJ project from which you want to remove MIDlet permissions.
  3. Select the Permissions tab.
  4. Select the permission to be removed and click Remove.
  5. Repeat Step 4 as may times as necessary to remove all the permissions you want.
  6. Click Update the MIDP Application.
  7. Click Close.

 


Mobile Tools for Java Platform

Java ME projects


Managing applications


Wizards