Tuesday 12 February 2013

Set TimeListener to TimePicker Dialog in Android ?



// set the Listener for TimePickerDialog
OnTimeSetListener timeListener = new OnTimeSetListener() {

public void onTimeSet(TimePicker view, int hourOfDay, int              minute) {
// TODO Auto-generated method stub

Toast.makeText(TimePickerDialogDemoActivity.this,
hourOfDay + "-" + minute, Toast.LENGTH_LONG).show();
}
};



No comments:

Post a Comment