java.lang.IllegalArgumentException: Object returned from onCreateLoader must not be a non-static inn

         Android基础:

         AsyncTaskLoader:http://developer.android.com/intl/zh-CN/reference/android/content/AsyncTaskLoader.html

 

错误信息:

java.lang.IllegalArgumentException: Object returned from onCreateLoader must not be a non-static inner member class: DownloadTask 


原因:

public static class DownloadTask extends AsyncTaskLoader<D> {  


必须static

你可能感兴趣的:(Android开发,android平台)