Hi all,
Thanks for your quick replies.. TimePickerListener issue is there in
honeycomb . But I got the result.. Finally i used TimePickerDialog
Fragment.. This what i have done
public void onTimeSet(TimePicker view, int hourOfDay, int minute)
{
// Do something with the time chosen by the user
log("Hour :"+hourOfDay);
log("Minute : "+minute);
ViewGroup vg=(ViewGroup) view.getChildAt(0);
log("AM/PM values after user
selection:"+((EditText)(((NumberPicker)vg.getChildAt(3)).getChildAt(1))).getText());
}
Android timepicker control internally has 4 childs
1 st - NumberPicker
2nd - TextView
3rd - NumberPicker
4th - NumberPicker
4th children is the AM/PM widget
This is also contains 2 childrens
1st - ImageButton
2nd - EditTextView(The value what i want huffffffff.. AM/PM).
after too much of trial and error cases finally i got the result..
On Tuesday, September 25, 2012 9:13:43 AM UTC+5:30, sindhu wrote:
>
> Hi, how to get time picker am/pm values in android 3.0?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en