The registerAlarm() method is a method of the PushRegistry class. This method is used to register a MIDlet to get it activated at a specified time. The general syntax of this method is as follows: public static long registerAlarm(String MIDlet, long time) The MIDlet parameter takes the... [read more..]
The closeRecordStore method is a method of the RecordStore class. This method is called to close a record store. A record store must be closed to free the resources (memory) it has been holding since it was opened. This method does not take any parameter. The call to this method must match the... [read more..]
The deleteRecordStore() method is a method of the RecordStore class. It takes one parameter, i.e., the name of the record store to be deleted. The general syntax of this method is as follows: public static void deleteRecordStore(String recordstore_name) [read more..]
The Sun Certified Mobile Application Developer for the Java 2 Platform, Micro Edition, Version 1.0 certification exam is meant for software developers who are developing mobile applications by using the Java 2 Platform, Micro Edition (J2ME) technology. The devices include cellular phones,... [read more..]
The Generic Connection Framework (GCF) is a J2ME API defined to support wireless networking. It has the following interfaces: Connection StreamConnectionNotifier InputConnection OutputConnection DatagramConnection StreamConnection ContentConnection The Connection interface... [read more..]
Ticker is a class used to display a message across the horizontal screen of the device. An instance of the Ticker class can be associated with any class derived from the Screen class. It has the following methods: Ticker(String str): It creates a new Ticker. The String parameter defines the... [read more..]
The insert() method is a method of the Form class. It places an instance of the Item class on the form at a specified location. It takes the following two parameters: An int, which indicates the location on the form to place the instance of the Item class. An instance of the Item class.... [read more..]
A record store is similar to a database table. It is a collection of rows and columns. A unique ID known as record ID identifies each record in a record store. The RMS (Record Management System) API is used to store and manipulate data in an organized manner on resource-constrained devices. [read more..]
The append() method is a method of the Form class. It places an instance of the Item class with that of the Form class. It places the instances in a sequential order. For example, if there are three instances of the StringItem class, namely s1, s2, and s3, then s1 will appear first on the screen,... [read more..]
The open() method is a method of the Connector class. It is used to create a connection of a MIDlet to a Web server. There are three versions of the open() method. They are as follows: static Connection open(String connectionstring): This version takes only a String parameter that specifies... [read more..]