How to show only Month and Year in datapicker using datapicker dialog box
<p>Please tell me how to show only Month and Year in Datapicker using Datapicker dialog box</p>

<pre><code>private DatePickerDialog.OnDateSetListener mDateSetListener2 =   new DatePickerDialog.OnDateSetListener() {

        public void onDateSet(DatePicker view, int year, 
                              int monthOfYear, int dayOfMonth) {
            try {
                Log.e("","myear"+mYear_1+","+"myear"+mMonth_1+","+mDay_1);
             Field f[] = mDateSetListener2.getClass().getDeclaredFields();
             for (Field field : f) {
                 if (field.getName().equals("mDatePicker")) {
                     field.setAccessible(true);
                  Object dayPicker = new Object();
                  dayPicker = field.get(mDateSetListener2);
                  ((View) dayPicker).setVisibility(View.GONE);
                 }
             }
                     } catch (SecurityException e) {
             Log.e("ERROR", e.getMessage());
             } 
             catch (IllegalArgumentException e) {
             Log.e("ERROR", e.getMessage());
             } catch (IllegalAccessException e) {
             Log.e("ERROR", e.getMessage());
             }

            }
    };
</code></pre>
