Open main menu

CDOT Wiki β


Lab BlackBerry Example

523 bytes added, 22:32, 26 February 2011
1 add
package mypackage;
public class MyApp{
* Entry point for application
You have to extend ''UiApplication''. This class extends the UiApplication class, providing a graphical use interface.
You have to import ''import net.rim.device.api.ui.UiApplication;''
Let us suppose that you want your application to have '''two screens''' and you want to switch from a screen to another using a button.
Thus, you have to define a variable of type Screen to keep track of the Screen object and a variable of type ButtonField.
You need also to importi ''net.rim.device.api.ui.component.ButtonField;''