[英]2nd Activity doesn't call after calling from 1st Activity
if(dialog.getProgress()==dialog.getMax())
{
Intent i = new Intent(this, ShowMyDialog.class);
startActivity(i);
}
I have written this code in my 1st activity.but 2nd activity not get called after progress bar value reached to max. 我已经在第一个活动中编写了此代码。但是在进度条值达到最大值后,第二个活动没有被调用。 so,please help me......how can i solve this.
所以,请帮助我……我该如何解决。
That if statement is only evaluated once - wherever it is declared. 该if语句仅被评估一次-无论在何处声明。 In order for that check to be called continuously, you'll need to put it in the same method that updates your dialog box.
为了使该支票被连续调用,您需要将其置于与更新对话框相同的方法中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.