How to get only time from time picker in android?
<p>I am creating a scheduler for my app in which i want to set time from time picker.Problem i am facing is that i am getting time with date.Here is the code please suggest how to do this .</p>

<pre><code>TimePickerDialog.OnTimeSetListener t = new TimePickerDialog.OnTimeSetListener() {
public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
    //etTime.setText(fmtTime.format(myCalendar.getTime()));
    Calendar calNow = Calendar.getInstance();
    Calendar calSet = (Calendar) calNow.clone();

    /*calSet.set(Calendar.HOUR_OF_DAY, hourOfDay);
    calSet.set(Calendar.MINUTE, minute);
    calSet.set(Calendar.SECOND, 0);
    calSet.set(Calendar.MILLISECOND, 0);*/

    if(calSet.compareTo(calNow) &lt;= 0){
        //Today Set time passed, count to tomorrow
        calSet.add(Calendar.DATE, 1);
    }

    setAlarm(calSet);

 }
};
</code></pre>
