I've looked at other questions and I failed to clarify my doubt as to call a task from another task, I have the following code:
protected List<Plan> doInBackground(String... params)
try {
JSONParsePlans parseJSON = new JSONParsePlans();
return parseJSON.execute(params[0], params[1], params[2]).get();
} catch (InterruptedException e) {
e.printStackTrace();
return null;
} catch (ExecutionExeption e) {
e.printStackTrace();
return null;
}
}
parseJSON is a task, when I run the program does nothing, not even called to task, it's like what Android omitted for security.