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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:35:58+00:00 2026-05-26T22:35:58+00:00

I am using the android dateslider custom dialog class in order to let the

  • 0

I am using the android dateslider custom dialog class in order to let the user edit the date for several different rows of a table.

The dateslider lets you limit the user to only select dates between a minimum date and maximum date that you can specify.

Each table row requires the dateslider to limit the user to a different minimum date and maximum date, however because you specify the min and max dates inside the onCreateDialog method, I need to be able to dynamically modify these dates when the user clicks the row.

I have tried calling the onCreateDialog method again when the user clicks the dialog, and it is ran, however the new limits are not taken into account, suggesting that the originally created dialog is still used instead.

How would I go about achieving my goal?

Thanks,
Max.

  • 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-26T22:35:59+00:00Added an answer on May 26, 2026 at 10:35 pm

    If you need to change dialogs before you use them, you need to use onPrepareDialog.

    Update:

    The dialog that is passed in to onPrepareDialog is the dialog that was created in onCreateDialog. Modify it however you like (don’t create a new one). You might have to add some setters to your custom dialog class:

    protected void onPrepareDialog(int id, Dialog dialog) {
        switch(id) {
        case YOUR_DIALOG_ID:
            YearMonthDayHourMinute myDialog = (YearMonthDayHourMinute) dialog;
            myDialog.setInitialTime(initialTime);
            myDialog.setMinTime(minTime);
            myDialog.setMaxTime(maxTime);
            break;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have using android alert dialog builder to display the some user message(String) as
I am using Android 2.1 sdk and I am trying to save user loggin
I'm using android.util.Log class Foo { private void boo() { // This is the
I am using android.text.format.DateFormat.format(yyyy-MM-dd hh:mm:ss, new java.util.Date()) to get time & date. The problem
Am using android:configChanges=keyboardHidden|orientation for switching between portrait and landscape modes. But when user opens
Im using android:imeOptions=actionGo for a edit text box. Its working properly on Android default
Hello I am using Android 1.5. I am using database to save the user
Using Android opengl I need to move an object from point A to point
When I take pictures using android.hardware.camera and I save them to the following location
i am using android:imeOptions=actionSearch in editText and my question is can i write my

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.