Skip to content Skip to sidebar Skip to footer

Alertdialog With Custom View In Oncreate()

Here is my code: public class MainActivity extends Activity { private static final int CONFIRMATION_DIALOG = 0; private View mLoginConfirmView; private TextView mT

Solution 1:

It will crash as the UI of the activity is not yet prepared, and activity is not yet shown to the user, android shows the screen after its onResume() execution is completed, try showing the dialog from onResume()


Post a Comment for "Alertdialog With Custom View In Oncreate()"