I'm trying to implement ProgressDialog that will load all the activity. So I added this line to the onCreate() method:
pd = ProgressDialog.show(this, "Waiting...", "Please wait five seconds...");
but is start loading after all the content was loaded, and its not stop because I don't know where add the line:
pd,dismiss();
So there is any built-in method that called when the activity is show up (like in iOS - viewDidAppear) and another built-in method that called when the activity is finished loading and all the content were loaded?
You can dismiss your Dialog in
onStop()
Or you can dismiss in
onDestroy()