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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:01:33+00:00 2026-05-23T02:01:33+00:00

I am making an application and it has an Alert Dialog in it. Now

  • 0

I am making an application and it has an Alert Dialog in it.

Now i am checking some data I got from AlertDialog editTexts in dialog Positive button OnClick method but the dialog always dismiss if data i got from edittext fields is correct or not.

How can we disable this feature.

UPDATED:

I am gettin Pin Code and Confirm Pin Code from the Dialog Box and in onPositive click i have checked to verify the pin codes.

Now if the pin codes matches then it is calling dialog.dismiss() and if not matching then display a Toast.

But in case of pin code not matched it displays me the message and dismiss the dialog.

I dont want that to be happen.

MORE UPDATES:

is there any way that i will disable the OK Button and when data is verified it will enable the positive Button??

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-05-23T02:01:34+00:00Added an answer on May 23, 2026 at 2:01 am

    Cap. Thanks for your help. through your guides i have got to know that i can disable the Alert Dialog Button. YES! its possible to disable the buttons.

    Answer is:

    we can disable the button using:

      Button pos =  Dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false);
      pos.setEnabled(true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making an Android application that has to read some values from a JSON
I am making an application which has j2me in client side and dotnet on
I am making an iphone application which has a zip code field. When the
I'm making an application for the iPad. I have a view controll that has
Im making an application in cocoa and wanted to see if some strings in
I am making an application (iPhone app) which gets information (jokes) from an RSS
I am making an application that involves controlling Safari from Applescript. Is there a
I am making the application that has needs to set the notification , thankfully
I am making a network application that has a chat function. On the chat
I'm making a custom GUI for my application. Basically my application has multiple 'tabs'.

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.