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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:55:28+00:00 2026-05-22T19:55:28+00:00

//called when hardware button Menu clicked public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater =

  • 0
   //called when hardware button "Menu" clicked
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.menu, menu);
        return true;
    }

and then this

@Override
    public boolean onMenuItemSelected(int featureId, MenuItem item) {
        switch (item.getItemId()) {
        case R.id.menu_options:
                startActivity(new Intent(this, EditPreferences.class));   
                break;
        case R.id.menu_about:
             Dialog dialog = new Dialog(getApplicationContext());
                dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);//NO TITLE :)
                dialog.setContentView(R.layout.menu_about);
                dialog.setCancelable(true);
                dialog.show();
            break;

        default:
            break;
        }

//return true;
//return false;
        return super.onMenuItemSelected(featureId, item);
    }

using debug i see i enter the switch case R.id.menu_about, but dialog.show() doesn’t do anything

the dialog just won’t show, i tried using standart AlertDialog too, no luck either

  • 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-22T19:55:29+00:00Added an answer on May 22, 2026 at 7:55 pm

    Try to change:

    Dialog dialog = new Dialog(getApplicationContext());
    

    to

    Dialog dialog = new Dialog(this);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which gets called first - the base constructor or other stuff here? public class
I am getting started with this new hardware similar to arduino, called tinkerforge. To
in the adobe flash publish settings i spotted a setting called Hardware acceleration with
I called this function once per frame and it took my FPS from >400
I called my main activity Main, and Eclipse created Main.java and res/layout/main.xml for the
I have an Interface called IStep that can do some computation (See Execution in
My dad called me today and said people going to his website were getting
Reading an article called Increase LINQ Query Performance in July's MSDN magazine, the author
I use this tool called Lazy C++ which breaks a single C++ .lzz file
I have a table called OffDays, where weekends and holiday dates are kept. I

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.