I need to make a transition screen, ou just put a dialog, because the app give a black screen when is creating the database. 

I have google, and find some solutions for this. One of then, is just put a progress dialog when the database is been created. 

My problem, and newbie question is, where do i put the progress dialog. 

A -> BlackScreen -> B where A is the inicial menu, and B the other screen. I have tried to put the dialog on A and/or in B and dont work. So where can i put the code of the progress dialog, so it shows in the BlackScreen ?