بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
پرسش و پاسخ
از بین رفتن dialog بعد از یک مدت زمان
مدیریت گفتگو
هنوز پاسخی ثبت نشده است
شما اجازه ارسال پاسخ به این پرسش را ندارید.
در حال دریافت فهرست آموزش ها…
حساب
در حال دریافت فهرست آموزش ها…
سلام
دوستان ممنون میشم کد من رو ببینید و بگین ایرادش چیه چرا جواب نمی ده و اصلا دایالوگ رو نمایش نمیده من می خوام تا زمانی که status مقدار false داره دایالوگ نمایش داده بشه و وقتی که true شد از بین بره
final Dialog dialogs = new Dialog(ActivityMain.this);
dialogs.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
dialogs.setContentView(R.layout.dialog_wait);
TextView txtPleasewait = (TextView) dialogs.findViewById(R.id.txtPleasewait);
TextView txtSomeProgress = (TextView) dialogs.findViewById(R.id.txtSomeProgress);
TextView txtSomeProgress1 = (TextView) dialogs.findViewById(R.id.txtSomeProgress1);
txtSomeProgress.setTypeface(tf);
txtSomeProgress1.setTypeface(tf);
txtPleasewait.setTypeface(tf);
dialogs.setCancelable(false);
new Thread(new Runnable() {
@Override
public void run() {
while (G.status != true) {
dialogs.show();
try {
Thread.sleep(1000);
}
catch (InterruptedException e) {}
}
dialogs.dismiss();
finish();
startActivity(getIntent());
}
});
نظرات