java - Phonegap deviceready event -
i have question regarding event here, deviceready.
document.addeventlistener('deviceready', function() { app.init(); }, false);
it appears event fired every time device (i'm working on android 2.3) tilted side (so display changes wide). guess intended behavior, there way prevent it, application needs initialized once?
here link solution
how disable orientation change on android?
by adding
android:configchanges="keyboardhidden|orientation"
to activity in androidmanifest.xml file, tells app handle configchanges yourself.
Comments
Post a Comment