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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:38:02+00:00 2026-05-24T13:38:02+00:00

Is there in android already some widget for choosing time which doesn’t show popup

  • 0

Is there in android already some widget for choosing time which doesn’t show popup like TimePicker? I have criteria for choosing time in popup so it looks weird to use Time Picker inside popup and open new.

  • 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-24T13:38:03+00:00Added an answer on May 24, 2026 at 1:38 pm

    When writing my first app, I could not find one. I ended up using 3 spinners in a RelativeLayout, hour, minute, and am/pm. Then just have accept button that pulls the values from each and build your time.

        final Spinner hourSpinner = (Spinner) findViewById(R.id.hourSpinner);
        ArrayAdapter<CharSequence> hourAdapter = ArrayAdapter.createFromResource(
                this, R.array.editHourArray, android.R.layout.simple_spinner_item);
        hourAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        hourSpinner.setAdapter(hourAdapter);
        hourSpinner.setSelection(myHour - 1);
    
        final Spinner minuteSpinner = (Spinner) findViewById(R.id.minuteSpinner);
        ArrayAdapter<CharSequence> minuteAdapter = ArrayAdapter.createFromResource(
                this, R.array.editMinuteArray, android.R.layout.simple_spinner_item);
        minuteAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        minuteSpinner.setAdapter(minuteAdapter);
        minuteSpinner.setSelection(myMinute);
    
        final Spinner am_pmSpinner = (Spinner) findViewById(R.id.am_pmSpinner);
        ArrayAdapter<CharSequence> am_pmAdapter = ArrayAdapter.createFromResource(
                this, R.array.editam_pmArray, android.R.layout.simple_spinner_item);
        am_pmAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        am_pmSpinner.setAdapter(am_pmAdapter);
        am_pmSpinner.setSelection(my_am_pm);
    

    Then in the onclick of the accept button

     myNewHour = Integer.valueOf(hourSpinner.getSelectedItem().toString());
     myNewMinute = Integer.valueOf(minuteSpinner.getSelectedItem().toString());
     String tempAm_Pm = am_pmSpinner.getSelectedItem().toString();
    

    And build your time with whatever you are using (I was using calendar because I had dates also)

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

Sidebar

Related Questions

I have a Samsung Spica i5700 which I already have updated to Android 2.1.
I have recently uploaded two apps on the android market, with one already there
There are some screen resolutions already defined in Android. They are: QVGA (240×320, low
I know it have been discussed already at some point. But after searching there
I'd like to learn android programming, I already know java, and I have already
Is there a way in Android to get the upcoming alarm time? Thanks Clarification:
Is there any way to play video in Android App widget.
I have already read some articles and searched on Google, but I failed to
I know that there is already some apps can do this, such as: WidgetLocker
I write application on android which will be runnig all the time on background.

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.