문제

I don't understand what all the functions in AsyncTaskLoader do, such as onCancelLoad() and onForceLoad(). All the functions and the order in which they're called are not documented properly.

Say I want to download a file in the background and cancel it if requested. What purpose does onCancelLoad() serve when there is already cancelLoadInBackground().

도움이 되었습니까?

해결책

This explains it perfectly. None of this vital information is explained in the documentation. Especially the most important aspect that it has three states that need to be handled carefully! No wonder so many apps malfunction when you rotate the screen.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top