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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:10:01+00:00 2026-05-22T13:10:01+00:00

Background: I am using Eclipse to develop an Android app. I have an xml

  • 0

Background: I am using Eclipse to develop an Android app. I have an xml file that contains a menu that contains three items. Each of the items contains an android:icon declaration. Only the first android:icon declaration is referenced in my program. NOTE: The second two android:icon declarations are NOT referenced ANYWHERE in my program or in any of the project files.

The Problem: I tried in vain to add a fourth menu item and discovered something very baffling to me. Not only cannot I not add an item to my menu, I cannot alter the existing last two android:icon declarations or I get the errors described in the title. For example I cannot change the following android:icon declaration from:

android:icon="@android:drawable/ic_menu_preferences"

To:

android:icon="@android:drawable/ic_menu_preference"

I find this very baffling because the android:icon is declared but not referenced anywhere in my program or in any of the project files. And none of the “solutions” I found on the internet fix my problem. And as I write this Stackoverflow is telling me my question has been asked and answered, but it hasn’t!

Any ideas anyone?

  • 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-22T13:10:02+00:00Added an answer on May 22, 2026 at 1:10 pm

    NOTE: The second two android:icon declarations are NOT referenced ANYWHERE in my program or in any of the project files

    They are in your menu. Otherwise, the android:icon attributes would not exist. Hence, the icons are referenced by the menu itself.

    For example I cannot change the following android:icon declaration

    That is because there is no icon in the OS with that name.

    Also, unless every icon you use in your menu will come from the OS, you are better served by copying them from your SDK into your project. Some OEMs replace the standard icons with their own versions. If you will be mixing OS icons with your own icons, even if you design your icons to match those on, say, the emulator, they will not match on other devices. By copying the icons from the SDK into your project, you ensure consistency within your menu — if the icons look right on the emulator, they will look the same on other devices.

    I find this very baffling because the android:icon is declared but not referenced anywhere in my program or in any of the project files.

    The icon is part of the menu. Otherwise, the android:icon attribute would not exist. Hence, the non-existent icon is referenced by the menu itself.

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

Sidebar

Related Questions

Background: At my company we are developing a bunch applications that are using the
I am using the webbrowser control in winforms and discovered now that background images
Background I'm using POST form submissions instead of links with concatenated arguments inside a
Background I am writing and using a very simple CGI-based (Perl) content management tool
Background : I am currently using custom controls within my C# project (basic controls
Background We are developing some in-house utilities using ASP.NET 2.0. One of which is
When using PNG files (made with Paint.NET) as background images on my web site,
Background: Customer X has a CCK-based Content Type (vendorxxentry) and is using Views2 to
A bit of background first: I am using base code from a remote SVN
How can I set the background color of an HTML element using css in

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.