title: How can I get selected date in CalenderView in Android?
body: <pre><code>Calendar date = Calendar.getInstance();     
  SimpleDateFormat sdf = new SimpleDateFormat("yy-MM-dd");
  
  curDate = sdf.format(date.getTime());
  </code></pre>
  
  <p>I have done the above code inside onCreate method. But it can only return the current date. What I want is to <strong>have the date selected in the calender</strong>. </p>
  
  <pre><code>&lt;CalendarView
        android:id="@+id/calendarView1"
        android:layout_width="match_parent"
        android:layout_height="match_parent" /&gt;
  </code></pre>
  
  <p><em>Please help me</em></p>