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

  • Home
  • SEARCH
  • 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 9178281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:30:54+00:00 2026-06-17T17:30:54+00:00

Implementing the DatePicker or DatePickerDialog in Android is easy. But when it comes to

  • 0

Implementing the DatePicker or DatePickerDialog in Android is easy. But when it comes to data storage, I have a problem with those classes:

If you use the spinners (+ or – button) to change the date, everything works fine. The event “Date changed” or “Date set” is called and you can get the values that the user entered.

But when the year is manually entered into the input field (via keyboard) and the user then clicks “Save” in the dialog, there won’t be any event called and you won’t get that manually entered value.

It only works when the user changes something with the sliders again after manually entering the year. Because when you use the sliders, the events are fired.

Is this normal behaviour? How can I achieve the desired behaviour, namely that an event is fired when the user enteres something manually and then clicks “Save”?

Thanks in advance!

  • 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-06-17T17:30:55+00:00Added an answer on June 17, 2026 at 5:30 pm

    Just clear focus, and android will set the number from manual input.

    eg:

    DatePicker datePicker = findViewById(R.id.dp);
    

    When saving just like onClick(), add
    datePicker.clearFocus();

    This must be working.

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

Sidebar

Related Questions

Implementing the ScriptControlClass was extremely easy, unfortunately the side effects with the language implementation
Implementing a simple Login screen using JSF and Spring and Hibernate. I have written
when implementing a recursive function during development, i will use a counter and exit
Implementing a custom VM and I've come to use registers (these will store pointers
Implementing a low pass FIR filter, when should one use FFT and IFFT instead
Implementing Document-View pattern I faced the problem: standard generic collections and dictionaries ( List<T>
while implementing jasig-CAS I've faced the next problem: I want to implement the logout.
While implementing, I came across a problem with Spring Cache Abstraction VS interfaces. Lets
Im implementing NFS and almoste done but the RFC section 3.3.8 says this in
Im Implementing a video broadcasting website. For that I planned to use silverlight player

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.