实际上,我正在从网络上获取 XML,对其进行解析并将其显示在屏幕上。我遇到的问题是,每次调用活动时,活动都会尝试从网络加载数据。(实际上,我的移动应用程序需要经常访问服务器)所以我正在寻找以下解决方案:
On Re-launch of an activity, the data from web should not be loaded again.
creating a class that i can use to transparently make application faster by
selectively caching items in memory. And thus, making users very happy and
This class can even apply individual refresh times to each cached item.
所以,我认为我需要将数据存储在缓存或类似的东西中。
有什么方法/技术可以实现这样的事情吗?这样它就不需要每次重新启动活动时都加载。