android - Jquery Mobile: loading spinner going crazy on second start-up -
in (android) phonegap app, i've added code below show loading-spinner while logging in on facebook. @ first start-up, works beautifuly. however, when press back-button , launch app again, spinner out of control: spins way fast , short pauzes. also, spinner appears not in center of screen, higher (it looks it's centered text follows afterwards).
anyone familiar issue , knows how fix it?
function devicereadylistener() { $.mobile.loading( 'show' ); console.log("device ready"); try { fb.init({ appid:"xxx", nativeinterface:cdv.fb, usecacheddialogs:false }); navigator.splashscreen.hide(); getloginstatus(); document.addeventlistener("offline", onoffline, false); } catch (e) { alert(e); } }
Comments
Post a Comment