MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / startApp

Method startApp

src/main/java/midlet/BombusMod.java:67–147  ·  view source on GitHub ↗

Entry point

()

Source from the content-addressed store, hash-verified

65
66 /** Entry point */
67 public void startApp() {
68 if (isRunning) {
69 hideApp(false);
70 return;
71 }
72
73//#ifdef LIGHT_CONFIG
74//# lcf = LightConfig.getInstance();
75//#endif
76
77 instance = this;
78 display = Display.getDisplay(this);
79
80 VirtualCanvas.getInstance().setMIDlet(this);
81 sd.roster = new Roster();
82 VirtualCanvas.getInstance().homeList = sd.roster;
83
84 s = SplashScreen.getInstance();
85 s.setProgress("Loading", 3); // this message will not be localized
86
87 isRunning = true;
88
89//#ifdef LIGHT_CONFIG
90//# CustomLight.setLight(lcf.light_control);
91//#endif
92
93 try {
94 s.splashimg = Image.createImage("/images/splash.png");
95 } catch (Exception e) {
96 s.splashimg = null;
97 }
98 s.setProgress(3);
99
100 s.setProgress(7);
101 s.setProgress(StaticData.getInstance().getVersionInfo().getVersionNumber(), 10);
102
103 SR.loaded();
104 s.setProgress(12);
105
106 Config cf = Config.getInstance();
107
108 s.setProgress(20);
109
110 boolean selAccount = ((cf.accountIndex < 0) || s.keypressed !=0);
111 if (selAccount) {
112 s.setProgress("Entering setup", 22);
113 }
114
115 try {
116 s.setProgress(24);
117 if (!selAccount && cf.autoLogin) {
118 sd.roster.loadAccount(cf.autoLogin, cf.accountIndex); // connect whithout account select
119 } else {
120 AccountSelect as = new AccountSelect(true);
121 if (as.itemsList.isEmpty()) {
122//#ifdef IMPORT_EXPORT
123 new IE.Accounts("/def_accounts.txt", 0, true);
124 as.loadAccounts();

Callers 2

windowDeiconifiedMethod · 0.45
willEnterForegroundMethod · 0.45

Calls 15

hideAppMethod · 0.95
getDisplayMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
createImageMethod · 0.95
getInstanceMethod · 0.95
loadedMethod · 0.95
getInstanceMethod · 0.95
loadAccountsMethod · 0.95
setMIDletMethod · 0.80
getVersionInfoMethod · 0.80
loadAccountMethod · 0.80

Tested by

no test coverage detected