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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:47:17+00:00 2026-05-24T05:47:17+00:00

When I run a code for the alertDialog on an Emulator with Android 2.2

  • 0

When I run a code for the alertDialog on an Emulator with Android 2.2 it works like its supposed to and everything however, when I attempt to do the same on my Samsung Captivate which also runs on Android 2.2 it gives a transparent black cover over the application layout just like in the emulator except it fails to show the actual Dialog none of the edittext and other elements are focusable just like in a regular dialog environment however, again, the actual Dialog is missing. I don’t understand what to do as both run on the same Operating System. Below is the code (it is located in the onCreate() method of my Activity):

AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Please rate me on the Android Market!")
   .setCancelable(true)
   .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
       public void onClick(DialogInterface dialog, int id) {

       }
   })
   .setNegativeButton("No", new DialogInterface.OnClickListener() {
       public void onClick(DialogInterface dialog, int id) {
            dialog.cancel();
       }
   });
AlertDialog alert = builder.create();
alert.show();
  • 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-24T05:47:17+00:00Added an answer on May 24, 2026 at 5:47 am

    Maybe you should try debugging the application on your device, and connect it through the USB cable if you are not already doing so. This has never happened to me, and I do not see it as a bug or a common occurrence. If you are not showing the complete code for the dialog, it could have something to do with internet(or other permissions running before and after this code). I would suggest you check:

    1) Permissions

    2)Storage Problems

    3) Confirm the compatibility of the application and your device once more.

    Hope this helps.

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

Sidebar

Related Questions

Taking the jQuery framework for example, if you run code like this: $(document).ready(function init()
I like to run some code when a user closes my ms 2000 app.
Currently we run code to setup the database in setUpBeforeClass. However this runs before
I would like to run a code every 1 minute ,15 minute etc Is
I would like to manually run code analysis for an entire solution, not on
I would just like to know how to run code in vb.net when the
how can i run code when an application ends with asp.net mvc ?
i need run code that will create a database and populate tables. i am
Our product contains a task-manager system that allows applications to run code in a
As a best practice, do you run code analysis on both debug and release

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.