Hi,
I'm trying to display a login screen the first time my app runs, but not for all subsequent times the app is launched (assuming the correct login credentials were provided the first time).
What would be the best way to do this using NetBeans Visual Midlet creator? I've tried using the switchDisplayable() method but I'm not having much luck.
Thanks in advance.
Edit:
I managed to solve it...
Code:switchDisplayable(null, getLoginScreen()); // write post-action user code here try { usernameAccessCodeRecordStore = RecordStore.openRecordStore("usernameaccesscode", true); if (usernameAccessCodeRecordStore.getNumRecords() != 0) { switchDisplayable(null, getMainWindowList()); } usernameAccessCodeRecordStore.closeRecordStore(); } catch (Exception ex) { System.out.println(ex); }

Reply With Quote

