title: I am having one EditText for which i have set onClickListener and opening material Calendar
body: <p>I am having one EditText for which i have set onClickListener and opening material Calendar. Problem is that when i am running application in emulator its working but when i am running in mobile device its stop on clicking on edit text and showing error 
  <strong>Failed sending reply to debugger: Broken pipe + android</strong></p>
  
  <pre><code>  from_date.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view)
          {
              Calendar c = Calendar.getInstance();
              int Year = c.get(Calendar.YEAR);
              int Month = c.get(Calendar.MONTH);
              int Day = c.get(Calendar.DAY_OF_MONTH);
  
              flage_from=true;
              flage_to=false;
              datePickerDialog = DatePickerDialog.newInstance(MainActivity.this, Year, Month, Day);
              datePickerDialog.setThemeDark(false);
  
  
              datePickerDialog.showYearPickerFirst(false);
  
              datePickerDialog.setAccentColor(Color.parseColor("#215f8b"));
  
             // datePickerDialog.setTitle("Select Date");
  
              datePickerDialog.show(getFragmentManager(), "DatePickerDialog");
  
          }
      });
  </code></pre>
  
  <p>@Override
      public void onDateSet(DatePickerDialog view, int Year, int Month, int Day)
      {</p>
  
  <pre><code>    String date = Day + "/" + Month + "/" + Year;
          if(flage_from){
              from_date.setText(date);
          }else {
              to_date.setText(date);
  
          }
  }
  </code></pre>