android - Destroy DialogFragment on onCreateDialog() -
i have dialog fragment initializes google plus views, views fail i'd kill dialog @ point, before it's displayed user.
how can end dialog creation process? returning null oncreatedialog returns dialog object crushes program.
if you'd dismiss dialogfragment within oncreatedialog can following:
@override public dialog oncreatedialog(bundle savedinstancestate) { setshowsdialog(false); dismiss(); return null; }
no need override onactivitycreated().
Comments
Post a Comment