I am trying to create a background application that will start when the system starts. When I start it manually (from the tape), a screen appears, but when I start the application after it starts the application (autostart when it starts in the handle), nothing appears on the screen. I am trying to execute the following code:
public class AppClass extends UiApplication { public static void main(String[] args) { AppClass theApp = new AppClass(); theApp.enterEventDispatcher(); } public AppClass() { pushScreen(new AppScreen()); } }
And this is the screen class;
public final class AppScreen extends MainScreen { private LabelField label; public AppScreen() { setTitle("AppTitle"); label = new LabelField(); label.setText("Ready."); add(label); } }
I expect this application to be a UI, so its screen should be visible regardless of whether autorun is performed at startup or manually started. If I need to do something to make it work properly, tell me about it, I'm new to BlackBerry development. I am developing in the following environment:
- BlackBerry JDE Eclipse Plugin 1.5.0
- BlackBerry OS 4.5
source share