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 v开发者_开发百科alue reached to max. so,please help me......how can i solve this.
That if statement is only evaluated once - wherever it is declared. In order for that check to be called continuously, you'll need to put it in the same method that updates your dialog box.
精彩评论