Код: Выделить всё
private class sendMail extends AsyncTask {
protected void onPreExecute() {
dialog.setMessage("Please wait...");
dialog.show();
}
// automatically done on worker thread (separate from UI thread)
@Override
protected Void doInBackground(Void... voids) {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
dialog.setMessage("Downloading files...");
new BackgroundTask().execute();
//MY DOWNLOADING METHODS STUFF
Журнал:
Произошла ошибка при выполнении doInBackground()
Подробнее здесь: https://stackoverflow.com/questions/482 ... ialog-text
Мобильная версия