Solution found:
the problem was this:
AsyncTask mAsyncTask = new ListPalinasAsynkTask(callback);
….
mAsyncTask.execute();
I’m using generic AsyncTask to call execute, that class would pass Void as a parameter and will never call .execute() on ListPalinasAsynkTask, instead it will call ListPalinasAsynkTask.execute(Void). That gives the error.
Solutions:
Use ListPalinasAsynkTask instead of generic AsyncTask
Better one: Create a new class VoidRepeatableAsyncTask and make other Void AsyncTasks extend that one.
Like this:
public abstract class VoidRepeatableAsyncTask extends RepeatableAsyncTask
1229

被折叠的 条评论
为什么被折叠?



