ACTION_UPに進捗ダイアログを表示しようとしていますが、何か異常な理由で動作していないため、ログにエラーが表示されず、ACTION_UPブロックのすべてが進捗状況ダイアログ?誰が何が起こっているか考えている?メインスレッドは、私はなぜ私がわからない場合、あなたがショーを呼び出す場合ProgressDialogが表示されません - Android
私もそれをテストするためにトーストを追加し、それだけで正常に動作します...何らかの理由で時々progressDialogについては
button.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View view, MotionEvent event) {
if (event.getAction() == android.view.MotionEvent.ACTION_DOWN) {
//works here
//progress = ProgressDialog.show(context,"Processing...","Preparing your file", true);
} else if (event.getAction() == android.view.MotionEvent.ACTION_UP ) {
Toast toast;
duration = Toast.LENGTH_LONG;
toast = Toast.makeText(context, text, duration);
toast.show();//this work and the toast is getting displayed
progress = ProgressDialog.show(context,"Processing...","Preparing your file", true);
}
return true;
}
});
私はそれがいつかそれが –
私のプロジェクトでは、メインスレッド上でのショーを呼び出すことができるよ://はい、thunder413 – thunder413
:)をしないか、あなたは素晴らしい素材ライブラリhttpsを使用することができます仕事時々言ったように私は... – thunder413