Code example for DialogFragment

Methods: onDetach

0
     * </blockquote> 
     */ 
    @Override 
    public void onDetach() { 
        Log.v(TAG, "onDetach");
        super.onDetach(); 
    } 
 
    public static interface DialogCallbacks { 
        public void onPositiveClick(int position);
        public void onNegativeClick(); 
    } 
}