简体   繁体   中英

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. In order for that check to be called continuously, you'll need to put it in the same method that updates your dialog box.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM