android - Dialog won't 're-show' after pressuing home key and relaunching app -
I have a 'Loading' dialog, which is basically a very simple print screen that is just a ' Load 'graphic while processing all my (Android) app loads
Once all this is done, the dialogue is rejected. Everything works great except for one thing ....
If the user presses the 'home' key, while the 'loading' dialog is displayed and then before all Something loads, I have a blank screen for everyone. It still works ... ie, after all, the blank screen is replaced by my app.
So, why does not my dialogue be displayed again? I have confirmed that I am returning to my app before the dialogue ends, so I really can not understand it. At all other points in my game, this screen returns with absolutely because it was stopped and was immediately restarted.
I am creating my own dialog so that this code is on creat () :
load_dialog = new dialog (main activity. R. Style I.EmailBlack_NototelBar_Fullscreen); Load_dialog.setCancelable (wrong);
Then I see this as (in onCreate () )
// Set and display splash screen view load_dialog .setContentView (splash); Load_dialog.show ();
After everything is loaded, on the onSurfaceCreated () method in my GL renderer classes, I dismiss it ...
< Pre> load_dialog.dismiss;
Any ideas?
This is normal behavior when activity is stopped when you kill the house.
Globalize your loading_modio then resume () inside the call:
if (load_dialog! = Null & amp;; load_dialog.is Showing ()) load_dialog. Show ();
Also remember that your activity will be recreated, even if you rotate the screen even when loaded. So you have to look for it too.
Comments
Post a Comment