Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据Android 文档,Android P 中不推荐使用 AsyncTaskLoader。谁能告诉我为什么不推荐使用它们以及我们应该使用什么替代方法?
编辑 - 谷歌现在建议使用 ViewModel 而不是 Loader 这是他们弃用的原因
谁能告诉我为什么他们被弃用
的框架实现Loader与Fragment.
Loader
Fragment
我们应该使用什么替代方案?
使用. _AsyncTaskLoader
AsyncTaskLoader