В моем приложении есть несколько asynctasks. Пожалуйста, дайте мне знать, почему doInBackground из asynctask иногда не вызывается. Вызывается метод onPreExecute. Есть ли проблема из-за множества асинтак или чего-то еще?doInBackground не вызывается иногда Android
/* ASync class for test table */
public class TestAsynch extends AsyncTask<String, Void, String>{
protected void onPreExecute() {
super.onPreExecute();
}
@Override
protected String doInBackground(String... params) {
String status = null;
String result1=API_Manager.getInstance().sendTestData(userName);
try {
if(result1 != null) {
// save in db
}
}
}
catch(Exception e) {
e.printStackTrace();
}
return status;
}
@Override
protected void onPostExecute(String status) {
}
}
, где ваш код? –
PLS чековая книжка. –