android - ProgressDialog disappers after screen lock -


i have progressdialog running , accepting percent complete thread handle. when screen locked, unlocked, app returns home screen of app , not continue display progressdialog.

how can return same page progressdialog on it? assume need somehow save handle resource , recreate on onresume unsure how this.

thanks.

it seems you're on right track. assuming have class variables showprogressdialog , myprogress:

@override protected void onresume() {     super.onresume();     if(showprogressdialog)       {         myprogressdialog.show();         myprogressdialog.setprogress(myprogress);       }  } 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -