saving data on tabs

删除回忆录丶 提交于 2019-12-02 09:55:53

That is entirely dependent upon the length of time you wish to store them for.

Storing in the Application Context will not persist data after the application has ended. It just stores in memory.

Shared preferences is a possibility for your string data but image data would require some manipulation and may have other restrictions for example size of data (TBC).

Please consult the relevant SDK documentation on Data Storage

The most convenient way would be to save the text in shared preferences and the image to disk. Refer to the getDir() function if you want to store in the application directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!