I have never used that code. Here is a sample project that just uses show():

https://github.com/commonsguy/cw-omnibus/tree/master/Dialogs/DialogFragment

On Mon, Feb 18, 2013 at 11:24 AM, dashman <[email protected]> wrote:
>
> Re-direct - but straight to the point. appreciate it.
>
> i copied this code from android docs to display a DialogFragment
>
>         FragmentTransaction transaction =
> fragmentManager.beginTransaction();
>
>
> transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
>
>             // To make it fullscreen, use the 'content' root view as the
> container
>             // for the fragment, which is always the root view for the
> activity
>             //
>             transaction.add(android.R.id.content,
> inputDialog).addToBackStack(null).commit();
>
> but it does not display it.
>
> do i need to do a .show() after the transaction.add()
>
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

In questi siti web puoi chiedere o rispondere a domande relative allo
sviluppo di applicazioni Android: http://www.andglobe.com

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to