How to avoid recreating view on onCreate on Android?

前端 未结 11 1866
执笔经年
执笔经年 2021-01-17 22:18

I have a FragmentActivity that shows a contacts list.

Here is my onCreate method:

@Override
protected void onCreate(Bundle          


        
11条回答
  •  猫巷女王i
    2021-01-17 22:43

    It is always adviced to use caching to retain the data . as mentiond by Groucho u can go with storage options Check below link for details.

    http://developer.android.com/guide/topics/data/data-storage.html

提交回复
热议问题