Code example for DialogFragment

Methods: onStart

0
        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();
 
        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
 
        builder.setMessage(context.getString(R.string.traktcheckin_inprogress,
                DateUtils.formatElapsedTime(mWait)));
 
        builder.setPositiveButton(R.string.traktcheckin_cancel, new OnClickListener() {