A hack to launch Foreground midlets for midlet suites that have a background midlet and a foreground midlet
Add a warning in add0 to remember that this is an hack
Load main.js after all the other JS files
Compare alarms to the time argument of poll0 instead of Date.now()
Return -1 if getMIDlet0 fails
Convert code to 4-spaces indentation
Store alarms and push notification registrations in the same array
Merge branch 'master' of https://github.com/andreasgal/j2me.js into launch_fg_midlets_hack
Traverse the array instead of a direct lookup using the handle
Alarms and Push Registrations arrays can be separate, only the registration ID has to be in common
lastPushRegistrationId is now called lastRegistrationId
Merge pull request #115 from marco-c/launch_fg_midlets_hack

A hack to launch Foreground midlets for midlet suites that have a backgr...