Android:problem in displaying the progressbar dialog?
862 단어 ProgressBar
제출 방법 에서 다음 과 같은 방법 을 사용 하여 doFunction()을 사용 합 니 다.자기 방법 으로 바 꾸 면 돼.
new AsyncTask<Void, Void, Void>() {
@Override
protected void onPreExecute()
{
pd = ProgressDialog.show(getApplicationContext(),"", "Sending Image ...", true);
Log.d(TAG, "onPreExecute()");
}
@Override
protected Void doInBackground(Void... params)
{
doFunction();
return null;
}
@Override
protected void onPostExecute(Void res)
{
Log.d(TAG, "onPostExecute()");
pd.dismiss();
}
}.execute();