Hi all!
I have a problem with my ProgressDialog in AsyncTask.
public class Background extends AsyncTask<Void, String,
ArrayList<Events>> {
@Override
protected void onPreExecute() {
startProgress();
super.onPreExecute();
}
@Override
protected ArrayList<Events> doInBackground(Void... params) {
//parseJson and publishProgress(sDate, sTitle, sImage, sTime);
}
@Override
protected void onProgressUpdate(String... array) {
TextView info = new TextView(getApplicationContext());
info.setText(array[3]);}
@Override
protected void onPostExecute(ArrayList<Events> list) {
stopProgress();
}
And my dialog doesn't want to spin during this process.
Why? Can anyone help me?
I read a lot about this problem but didn't find the right solution.
Thanks in advance!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en