Code example for DialogFragment

Methods: setArguments

0
 
    private int mWait;
 
    public static TraktCancelCheckinDialogFragment newInstance(Bundle traktData, int wait) {
        TraktCancelCheckinDialogFragment f = new TraktCancelCheckinDialogFragment();
        f.setArguments(traktData);
        f.mWait = wait;
        return f;
    } 
 
    @Override 
    public void onStart() { 
        super.onStart(); 
        EasyTracker.getTracker().sendView("Cancel Check-In Dialog"); 
    } 
 
    @Override 
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        final Context context = getActivity().getApplicationContext();
        final FragmentManager fm = getFragmentManager();
        final Bundle args = getArguments();