Please help. I can restart the AsyncTask. App crashes every time, when second call to updatePoi().
Here is my code:
I\'m checking status of task and set
try
return null;
final code
@Override
protected Void doInBackground(Void... voids) {
Application app = (Application)getApplication();
Log.d(TAG, "exits count = " + app.getExits().size());
GeoPoint pointToNavigate = null;
for (Exit exit : app.getExits()) {
for (Poi poi : exit.getPoi()) {
if (isCancelled()){
return null;
}
//some code here
}
}
//small code here
return null;
}