publishProgress(i);里面是interger[] i是int额 一直报错额
class mAsyncTask extends AsyncTask<Void, integer, Void>{
@Override
protected Void doInBackground(Void... params) {
for (int i = 0; i < 100; i++) {
publishProgress(i);
try {
Thread.sleep(300);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return null;
}