main.js / navigator.notification.vibrate(0);
notification.js / Notification.vibrate.vibrate 涓墽琛屼簡 PhoneGap.exec(null, null, "Notification", "vibrate", [mills]);
public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result)
涓 搴忓垪鍖栧師鍥狅細
1.姘鎬箙鎬т繚瀛樺璞★紝淇濆瓨瀵硅薄鐨勫瓧鑺傚簭鍒楀埌鏈湴鏂囦歡涓紱
2.閫氳繃搴忓垪鍖栧璞″湪緗戠粶涓紶閫掑璞★紱
3.閫氳繃搴忓垪鍖栧湪榪涚▼闂翠紶閫掑璞°?nbsp;
浜?鑷充簬閫夊彇鍝鍙弬鑰冧笅闈㈢殑鍘熷垯錛?/span>
1.鍦ㄤ嬌鐢ㄥ唴瀛樼殑鏃跺欙紝Parcelable 綾繪瘮Serializable鎬ц兘楂橈紝鎵浠ユ帹鑽愪嬌鐢≒arcelable綾匯?br style="line-height: 25px; " />2.Serializable鍦ㄥ簭鍒楀寲鐨勬椂鍊欎細浜х敓澶ч噺鐨勪復(fù)鏃跺彉閲忥紝浠庤屽紩璧烽綣佺殑GC銆?br style="line-height: 25px; " />3.Parcelable涓嶈兘浣跨敤鍦ㄨ灝嗘暟鎹瓨鍌ㄥ湪紓佺洏涓婄殑鎯呭喌錛屽洜涓篜arcelable涓嶈兘寰堝ソ鐨勪繚璇佹暟鎹殑鎸佺畫鎬у湪澶栫晫鏈夊彉鍖栫殑鎯呭喌涓嬨傚敖綆erializable鏁堢巼浣庣偣錛?涔熶笉鎻愬$敤錛屼絾鍦ㄨ繖縐嶆儏鍐典笅錛岃繕鏄緩璁綘鐢⊿erializable 銆?/span>
3 淇敼AndroidManifest.xml錛屾妸璇ctivity娣誨姞 android:configChanges="orientation"錛屽垏妯睆錛屽彧閿姣佷竴嬈°?/p>
onSaveInstanceState
onPause
onStop
onDestroy
onCreate
onStart
onRestoreInstanceState
onResume
onSaveInstanceState
onPause
onStop
onDestroy
onCreate
onStart
onRestoreInstanceState
onResume
onConfigurationChanged
5 鏇存敼 android:configChanges="orientation" 鏀規(guī)垚 android:configChanges="orientation|keyboardHidden"錛屽垏妯睆錛屽氨鍙墦鍗皁nConfigChanged
onConfigurationChanged
6 鍒囧洖绔栧睆
onConfigurationChanged
onConfigurationChanged
鎬葷粨錛?/p>
1銆佷笉璁劇疆Activity鐨刟ndroid:configChanges鏃訛紝鍒囧睆浼氶噸鏂拌皟鐢ㄥ悇涓敓鍛藉懆鏈燂紝鍒囨í灞忔椂浼氭墽琛屼竴嬈★紝鍒囩珫灞忔椂浼氭墽琛屼袱嬈?/p>
2銆佽緗瓵ctivity鐨刟ndroid:configChanges="orientation"鏃訛紝鍒囧睆榪樻槸浼氶噸鏂拌皟鐢ㄥ悇涓敓鍛藉懆鏈燂紝鍒囨í銆佺珫灞忔椂鍙細鎵ц涓嬈?/p>
3銆佽緗瓵ctivity鐨刟ndroid:configChanges="orientation|keyboardHidden"鏃訛紝鍒囧睆涓嶄細閲嶆柊璋冪敤鍚勪釜鐢熷懡鍛ㄦ湡錛屽彧浼氭墽琛宱nConfigurationChanged鏂規(guī)硶