Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6053079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:59:57+00:00 2026-05-23T07:59:57+00:00

I am implementing a DateTimePicker. I have reuse this repository . The problem appears

  • 0

I am implementing a DateTimePicker. I have reuse this repository.

The problem appears when I am trying to catch the events for the onTimeChanged() method when I change the minutes. If I use the buttons of + and – it’s fine, the event is fired and I can handle it here:

public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
    // Update the internal Calendar instance
    mCalendar.set(mCalendar.get(Calendar.YEAR),
                  mCalendar.get(Calendar.MONTH),
                  mCalendar.get(Calendar.DAY_OF_MONTH),
                  hourOfDay, minute);
}

Whereas when I click on the minutes and I change it using the keyboard the event doesn’t arise, as in the case of the hours, days, etc…

A more detail description of the problem is:

What steps will reproduce the problem?

  1. Select the time picker
  2. Touch on the numbers, so the keyboard appears
  3. when I write an amout of minutes, the event doesn’t fire

What is the expected output? What do you see instead?

I would expect to catch this event inside onTimeChanged(), but I cant.

What version of the product are you using? On what operating system?

Version 2. On Android Froyo.

The author of this code has told me there is a bug on Android. I think should be a work around to this problem, for example creating my own class extending from TimePicker and reimplementing the interface OnTimeChangedListener.

What is the best option to listen the timerPicker events?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:59:58+00:00Added an answer on May 23, 2026 at 7:59 am

    DatePicker control must call clearFocus() in order to trigger
    onFocusChanged() and that will fix the issue.

    PFB the link that might help you :

    http://code.google.com/p/android/issues/detail?id=2745

    Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im implementing a ZoomButtonsController in my custom View and have been trying to figure
implementing publishActivity in PHP using the REST API using this code: $activity = array(
When implementing Quicksort, one of the things you have to do is to choose
Implementing Document-View pattern I faced the problem: standard generic collections and dictionaries ( List<T>
Im implementing NFS and almoste done but the RFC section 3.3.8 says this in
In implementing hook_menu for a module, I am trying to put some items into
Implementing Kings' Corners (glorified multiplayer Solitaire) in Java. I'm trying to allow a player
I know this question is asked many a times,and i am also implementing the
Implementing Interface just provide the skeleton of the method. If we know the exact
While implementing the code from this question on my project I realized there's 3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.