You are on page 1of 63
- Blanket: Permission is granted for every invocation of the API by a MIDlet suite until
-
Blanket: Permission is granted for every invocation of the API by a MIDlet suite until it is uninstalled or the user changes the permission.
-
Session: The user is prompted when the MIDlet first attempts to use the protected API. If the user then grants permission, permission
is granted until the user exits the MIDlet suite. If the user restarts the MIDlet suite, the permission request is repeated the first time
the MIDlet attempts to access the protected API.
StringItem stringItem = new StringItem("Click Here: ", "Set", Item.HYPERLINK);
StringItem stringItem = new StringItem("Click Here: ", "Set", Item.HYPERLINK);
StringItem stringItem = new StringItem(String Label, String txt, Item. HYPERLINK);
StringItem stringItem = new StringItem(String Label, String txt, Item. HYPERLINK);
Player Wavplayer=Manager.createPlayer(istream,”audio/X-wav”);
Player Wavplayer=Manager.createPlayer(istream,”audio/X-wav”);
Serial port communication: Connection cc = Connector.open("comm:0;baudrate=9000"); http://www.wirelessdevnet.com/channels/java/features/j2me_http.phtml
Serial port communication:
Connection cc = Connector.open("comm:0;baudrate=9000");
http://www.wirelessdevnet.com/channels/java/features/j2me_http.phtml
Page no:- 6B.11 all code form 900 to 912 r given
Page no:- 6B.11
all code form 900 to 912 r given
comexit = new Command(“exit”,Command.EXIT,1);
comexit = new Command(“exit”,Command.EXIT,1);
  • - HTTP communication:

Connection hc = Connector.open("http://www.wirelessdevnet.com");

Stream-based

  • - Socket communication:

Connection sc = Connector.open("socket://localhost:9000");

  • - Datagram-based socket communication:

Connection dc = Connector.open("datagram://:9000");

  • - Serial port communication:

Connection cc = Connector.open("comm:0;baudrate=9000");

  • - File I/O

Connection fc = Connector.open("file://foo.dat");