안드로이드 AsyncTask onPreExecute() 메소드에서 프로그레스바가 무한로딩되는데요
로그 보니까 DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
해당 오류가 발생합니다 구글링 해봤는데 정확한 답변을 얻지 못해서 여기에 질문합니다
답변 부탁드리겠습니다
감사합니다
소스부분
- AsyncTask
class DoAsyncTask extends AsyncTask<Void, Integer, Integer>{
private Intent m_intent = null;
@Override
protected void onPreExecute(){
m_pgrDlg = s.MyProgressBar.show(PalmBox_FileSecurity.this, "Loading..", "Loading..", false, false, null);
super.onPreExecute();
}
* doInBackground 에서는 파일 다운로드를 진행합니다
- ProgressBar
public static MyProgressBar show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener)
{
MyProgressBar dialog = new MyProgressBar(context);
dialog.setTitle(title);
dialog.setCancelable(cancelable);
dialog.setOnCancelListener(cancelListener);
/* The next line will add the ProgressBar to the dialog. */
// dialog.addContentView(new ProgressBar(context), new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
ProgressBar progress = new ProgressBar( context );
progress.setBackgroundDrawable( new ColorDrawable( Color.TRANSPARENT) );
dialog.getWindow().setBackgroundDrawable( new ColorDrawable( Color.TRANSPARENT) );
dialog.addContentView(progress, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
dialog.show();
return dialog;
}