// Path: sample/src/main/java/com/wada811/android/dialogfragments/sample/datepickerdialogfragment/DatePickerDialogFragmentExamplesActivity.java
// public class DatePickerDialogFragmentExamplesActivity extends ActionBarActivity
//     implements DialogFragmentCallbackProvider {
// 
//     final DatePickerDialogFragmentExamplesActivity self = this;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState){
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity);
// 
//         boolean isInActivity = getIntent().getBooleanExtra(Const.KEY_IS_IN_ACTIVITY, true);
//         getSupportActionBar().setTitle(isInActivity ? R.string.title_activity_date_picker_dialog_fragment_examples_in_activity : R.string.title_activity_date_picker_dialog_fragment_examples_in_fragment);
//         if(savedInstanceState == null){
//             getSupportFragmentManager().beginTransaction()
//                 .replace(R.id.container, DatePickerDialogFragmentExamplesFragment.newInstance(isInActivity))
//                 .commit();
//         }
//     }
// 
//     @Override
//     public DialogFragmentCallback getDialogFragmentCallback(){
//         return new SimpleDialogFragmentCallback() {
//             @Override
//             public void onDateSet(DialogFragmentInterface dialog, DatePicker datePicker, int year, int month, int day){
//                 String text = "onDateSet[year: " + year + ", month: " + month + ", day: " + day + "]";
//                 Log.v(dialog.getTag(), text);
//                 Toast.makeText(self, text, Toast.LENGTH_SHORT).show();
//             }
//         };
//     }
// }
// 
// Path: sample/src/main/java/com/wada811/android/dialogfragments/sample/numberpickerdialogfragment/NumberPickerDialogFragmentExamplesActivity.java
// public class NumberPickerDialogFragmentExamplesActivity extends ActionBarActivity
//     implements DialogFragmentCallbackProvider {
// 
//     final NumberPickerDialogFragmentExamplesActivity self = this;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState){
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity);
// 
//         boolean isInActivity = getIntent().getBooleanExtra(Const.KEY_IS_IN_ACTIVITY, true);
//         getSupportActionBar().setTitle(isInActivity ? R.string.title_activity_number_picker_dialog_fragment_examples_in_activity : R.string.title_activity_number_picker_dialog_fragment_examples_in_fragment);
//         if(savedInstanceState == null){
//             getSupportFragmentManager().beginTransaction()
//                 .replace(R.id.container, NumberPickerDialogFragmentExamplesFragment.newInstance(isInActivity))
//                 .commit();
//         }
//     }
// 
//     @Override
//     public DialogFragmentCallback getDialogFragmentCallback(){
//         return new SimpleDialogFragmentCallback() {
//             @Override
//             public void onNumberSet(DialogFragmentInterface dialog, NumberPicker numberPicker, int value){
//                 String text = "onTimeSet[value: " + value + "]";
//                 Log.v(dialog.getTag(), text);
//                 Toast.makeText(self, text, Toast.LENGTH_SHORT).show();
//             }
//         };
//     }
// }


import java.util.ArrayList;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.wada811.android.dialogfragments.sample.alertdialogfragment.AlertDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.datepickerdialogfragment.DatePickerDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.dialogfragmentcallbackprovider.DialogFragmentCallbackProviderActivity;
import com.wada811.android.dialogfragments.sample.numberpickerdialogfragment.NumberPickerDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.progressdialogfragment.ProgressDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.stringpickerdialogfragment.StringPickerDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.timepickerdialogfragment.TimePickerDialogFragmentExamplesActivity;
            Intent intent = new Intent(getActivity(), DatePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, true);
            String label = getString(R.string.title_activity_date_picker_dialog_fragment_examples_in_activity);
            items.add(new Examples(label, intent));
        }
        {
            Intent intent = new Intent(getActivity(), DatePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, false);
            String label = getString(R.string.title_activity_date_picker_dialog_fragment_examples_in_fragment);
            items.add(new Examples(label, intent));
        }
        {
            Intent intent = new Intent(getActivity(), TimePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, true);
            String label = getString(R.string.title_activity_time_picker_dialog_fragment_examples_in_activity);
            items.add(new Examples(label, intent));
        }
        {
            Intent intent = new Intent(getActivity(), TimePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, false);
            String label = getString(R.string.title_activity_time_picker_dialog_fragment_examples_in_fragment);
            items.add(new Examples(label, intent));
        }
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){
            Intent intent = new Intent(getActivity(), NumberPickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, true);
            String label = getString(R.string.title_activity_number_picker_dialog_fragment_examples_in_activity);
            items.add(new Examples(label, intent));
        }
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){
// Path: sample/src/main/java/com/wada811/android/dialogfragments/sample/datepickerdialogfragment/DatePickerDialogFragmentExamplesActivity.java
// public class DatePickerDialogFragmentExamplesActivity extends ActionBarActivity
//     implements DialogFragmentCallbackProvider {
// 
//     final DatePickerDialogFragmentExamplesActivity self = this;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState){
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity);
// 
//         boolean isInActivity = getIntent().getBooleanExtra(Const.KEY_IS_IN_ACTIVITY, true);
//         getSupportActionBar().setTitle(isInActivity ? R.string.title_activity_date_picker_dialog_fragment_examples_in_activity : R.string.title_activity_date_picker_dialog_fragment_examples_in_fragment);
//         if(savedInstanceState == null){
//             getSupportFragmentManager().beginTransaction()
//                 .replace(R.id.container, DatePickerDialogFragmentExamplesFragment.newInstance(isInActivity))
//                 .commit();
//         }
//     }
// 
//     @Override
//     public DialogFragmentCallback getDialogFragmentCallback(){
//         return new SimpleDialogFragmentCallback() {
//             @Override
//             public void onDateSet(DialogFragmentInterface dialog, DatePicker datePicker, int year, int month, int day){
//                 String text = "onDateSet[year: " + year + ", month: " + month + ", day: " + day + "]";
//                 Log.v(dialog.getTag(), text);
//                 Toast.makeText(self, text, Toast.LENGTH_SHORT).show();
//             }
//         };
//     }
// }
// 
// Path: sample/src/main/java/com/wada811/android/dialogfragments/sample/numberpickerdialogfragment/NumberPickerDialogFragmentExamplesActivity.java
// public class NumberPickerDialogFragmentExamplesActivity extends ActionBarActivity
//     implements DialogFragmentCallbackProvider {
// 
//     final NumberPickerDialogFragmentExamplesActivity self = this;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState){
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity);
// 
//         boolean isInActivity = getIntent().getBooleanExtra(Const.KEY_IS_IN_ACTIVITY, true);
//         getSupportActionBar().setTitle(isInActivity ? R.string.title_activity_number_picker_dialog_fragment_examples_in_activity : R.string.title_activity_number_picker_dialog_fragment_examples_in_fragment);
//         if(savedInstanceState == null){
//             getSupportFragmentManager().beginTransaction()
//                 .replace(R.id.container, NumberPickerDialogFragmentExamplesFragment.newInstance(isInActivity))
//                 .commit();
//         }
//     }
// 
//     @Override
//     public DialogFragmentCallback getDialogFragmentCallback(){
//         return new SimpleDialogFragmentCallback() {
//             @Override
//             public void onNumberSet(DialogFragmentInterface dialog, NumberPicker numberPicker, int value){
//                 String text = "onTimeSet[value: " + value + "]";
//                 Log.v(dialog.getTag(), text);
//                 Toast.makeText(self, text, Toast.LENGTH_SHORT).show();
//             }
//         };
//     }
// }


// Path: sample/src/main/java/com/wada811/android/dialogfragments/sample/ExamplesFragment.java
import java.util.ArrayList;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.wada811.android.dialogfragments.sample.alertdialogfragment.AlertDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.datepickerdialogfragment.DatePickerDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.dialogfragmentcallbackprovider.DialogFragmentCallbackProviderActivity;
import com.wada811.android.dialogfragments.sample.numberpickerdialogfragment.NumberPickerDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.progressdialogfragment.ProgressDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.stringpickerdialogfragment.StringPickerDialogFragmentExamplesActivity;
import com.wada811.android.dialogfragments.sample.timepickerdialogfragment.TimePickerDialogFragmentExamplesActivity;

            Intent intent = new Intent(getActivity(), DatePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, true);
            String label = getString(R.string.title_activity_date_picker_dialog_fragment_examples_in_activity);
            items.add(new Examples(label, intent));
        }
        {
            Intent intent = new Intent(getActivity(), DatePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, false);
            String label = getString(R.string.title_activity_date_picker_dialog_fragment_examples_in_fragment);
            items.add(new Examples(label, intent));
        }
        {
            Intent intent = new Intent(getActivity(), TimePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, true);
            String label = getString(R.string.title_activity_time_picker_dialog_fragment_examples_in_activity);
            items.add(new Examples(label, intent));
        }
        {
            Intent intent = new Intent(getActivity(), TimePickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, false);
            String label = getString(R.string.title_activity_time_picker_dialog_fragment_examples_in_fragment);
            items.add(new Examples(label, intent));
        }
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){
            Intent intent = new Intent(getActivity(), NumberPickerDialogFragmentExamplesActivity.class);
            intent.putExtra(Const.KEY_IS_IN_ACTIVITY, true);
            String label = getString(R.string.title_activity_number_picker_dialog_fragment_examples_in_activity);
            items.add(new Examples(label, intent));
        }
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){
            Intent intent = new Intent(getActivity(), NumberPickerDialogFragmentExamplesActivity.class);