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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -