2013年8月29日 星期四

android:在設備旋轉後,不要再執行create

請在到AndroidManifest.xml中,找到那個Activity的定義
加上這個參數:
            android:configChanges="orientation|screenSize" 
(如果是在tab host中的activity,則請在tabhost所在的activity加上這參數)

0 個意見:

張貼留言

訂閱 張貼留言 [Atom]

<< 首頁