[Help] Do my stuff after activity loads
I'm trying to do something with my app but i dont know how =) maybe you can help me.
My main activity needs to initialize some parts of the app. It takes 2-5 seconds and I'd like to show the user a progress dialog.
the code im using is like
ProgressDialog tempdialog= ProgressDialog.show(this, "Loading", "Please Wait");
But i dont know where to put that code. I tried in onCreate(), onStart() and onResume(). But all them show a blackscreen while initializing and dialog is never shown.
Thanks in advance