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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:57:57+00:00 2026-06-05T14:57:57+00:00

I have a FromDate EditText to which I have added an image. Now when

  • 0

I have a FromDate EditText to which I have added an image. Now when I click the image a Datepicker is shown. Now when I choose some date and click on Set Button, the date is set in the EditText. Problem is that, when I click Cancel Button, the date picker is gone and the prev activity does not gain focus until I press Back! No touch event works on the screen.
Please help…

  • 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-05T14:57:59+00:00Added an answer on June 5, 2026 at 2:57 pm

    I don’t believe this could be the best way to do it…but some how the following code works; got some guidance from this link
    https://stackoverflow.com/a/4981308/840520

        dialog.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                   if (which == DialogInterface.BUTTON_NEGATIVE) {                 
                      dialog.dismiss();
                      onBackPressed();
                   }
                }
              });   
    

    Since I have a project delivery, this works for me now.However, I’m still looking for a decent way of handling this. Does android platform doesn’t handle the cancel button as it does for other dialogs?

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

Sidebar

Related Questions

I have a gridview which will contain some 'n' number of rows.... Now i
I have two input fields fromDate and toDate which are instances of Date class.
I have an SQL query like this: set @fromdate = '2012/01/01 00:00:00' set @todate
I have a table containing 2 date fields and an identifier (id, fromdate and
Please see attached image alt text http://img248.imageshack.us/img248/7743/datefrom.png I have a table which have FromDate
I have an ASP.NET text control FromDate whose visible property is set to false,
SpousesTable SpouseID SpousePreviousAddressesTable PreviousAddressID , SpouseID , FromDate, AddressTypeID What I have now is
I have a page which contains a button that perform the following code, I
I have added the following code to my app: NSDate * selected = [DatePicker
i have a usercontrol with two public properties public DateTime fromdate { get; set;

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.