On Sun, Aug 3, 2014 at 11:25 AM, luca <[email protected]> wrote:

> i have a class that extends DialogFragment. The .xml used to create its
> view is selected by calling a specific method of the activity (let's call
> it getData())


Your DialogFragment should not be calling into a custom Activity to
determine its behavior. Pass an argument to the DialogFragment via a Bundle
in setArguments() that you later retrieve when you actually initialize the
dialog.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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/d/optout.

Reply via email to