I have a question regarding this event here, deviceready.
document.addEventListener('deviceready', function() {
app.init();
}, false);
It appears the event is fired every time the device (I'm working on Android 2.3) is tilted to the side (So that the display changes to wide). I guess this is the intended behavior, but is there any way to prevent it, as my application needs to be initialized only once?