Hello,

I am having the following problem with the timepicker. When I use
the plus and minus signs to update the time everything works fine
but when I use the soft keyboard I cannot read the new value from
the time picker.

Basically the problem I am having is described here:

http://stackoverflow.com/questions/3380761/how-can-i-capture-when-time-changes-in-a-timepicker-if-the-keyboard-is-being-used

However I tried the following:

        <TimePicker
          android:id="@+id/timePicker"
          android:addStatesFromChildren="true"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" />

and the following:

    this.timePicker.setOnTimeChangedListener(new OnTimeChangedListener() {

      @Override
      public void onTimeChanged(TimePicker view, int hours, int minutes) {
        System.out.println(hours);
        System.out.println(minutes);

      }
    });

with no luck (I don't see the listener being called when I update the time
on the buttons).
Same goes for the date picker.

What am I doing wrong?

I really appreciate your help on this issue,

John Goche

-- 
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

Reply via email to