I am working with Android application to show network error.
NetErrorPage.java
package exp.app;
import android.app.Activity;
impor
I got this error but it is resolved interesting. As first, i got this error at api level 17. When i call a thread (AsyncTask or others) without progress dialog then i call an other thread method again using progress dialog, i got that crash and the reason is about usage of progress dialog.
In my case, there are two results that;
show(); method of progress dialog before first thread starts then i took dismiss(); method of progress dialog before last thread ends. So :
ProgresDialog progressDialog = new ...
//configure progressDialog
progressDialog.show();
start firstThread {
...
}
...
start lastThread {
...
}
//be sure to finish threads
progressDialog.dismiss();