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 8520675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:35:59+00:00 2026-06-11T06:35:59+00:00

When a user makes changes to a TimePicker I need to save the hour,

  • 0

When a user makes changes to a TimePicker I need to save the hour, minute, and whether it was AM or PM so I can later add 1.5 hours to it and create an alarm in Android’s default alarm system.

I can’t get anything to save the user input right now…

Does anyone know either how I can do this or where I can look to see some code?

Thanks all.

  • 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-11T06:36:00+00:00Added an answer on June 11, 2026 at 6:36 am

    If you are using a simple TimePicker, you can listen for each change in with an OnTimeChangedListener

    If you are using a TimePickerDialog, you can retrieve the time when the user presses the “Set” button with an OnTimeSetListener

    Hope that helps point you in the right direction.

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

Sidebar

Related Questions

Not sure why I can't figure this out. When a user makes a selection,
My Rails application makes use of Time.zone so that each user can set their
I have stored procedures that take a user's username (to log who makes changes
I am having a number of controls in my application(which user can add to
I'm thinking of a situation where an administrator makes some changes to another user
I color invalid data red in a DataGridView. After the user makes changes, I
recently i was working on a tool, where user makes changes on the interface
Ok. So I know how to create a trigger that makes changes to Table
I have a table for users. But when a user makes any changes to
I'm not a regular Visual Studio user... I wanted to make some changes to

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.