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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:08:36+00:00 2026-06-12T05:08:36+00:00

I am working on an android project and have an XML file for the

  • 0

I am working on an android project and have an XML file for the action bar menu, its been working fine, but I now need to add an extra item with an icon, but it this displays an error in the eclipse tab and the console output. If I remove the icon field, then its fine, but if I add the icon, then I get the error.

Below is the XML that contains the menu item. I’ve included one item that previously worked and the new item that isn’t working

<item android:id="@+id/mnu_search"
        android:title="Search"
        android:icon="@android:drawable/ic_menu_search"
        android:showAsAction="always">
    </item>
    <item android:id="@+id/mnu_sync"
        android:title="Sync"
        android:icon="@android:drawable/ic_menu_refresh"
        android:showAsAction="always">
    </item>

The sync menu item is the one that isn’t working, the search item is working fine.

The error in the errors tab in eclipse says

Unparsed aapt error(s)! Check the console for output

Below is the console output

W/ResourceType( 9156): Bad XML block: header size 305 or total size 0 is larger than data size 0
C:\Users\Chris\workspace\AndroidPasswordManager\res\menu\main_menu.xml:13: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_refresh').
W/ResourceType( 8896): Bad XML block: header size 300 or total size 0 is larger than data size 0
C:\Users\Chris\workspace\AndroidPasswordManager\res\menu\main_menu.xml:13: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_refresh').
W/ResourceType( 8984): Bad XML block: header size 303 or total size 0 is larger than data size 0
C:\Users\Chris\workspace\AndroidPasswordManager\res\menu\main_menu.xml:13: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_refresh').

I have no idea what could be wrong. I’ve check in the android sdk directory for the images and it definetely exists, I’m using api level 15.

Thanks for any help you can provide.

  • 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-12T05:08:38+00:00Added an answer on June 12, 2026 at 5:08 am

    The resource you are trying to use not public. It is used by android internally. Use your app drawable reference.

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

Sidebar

Related Questions

I am working on a project in Android now that involves parsing XML from
I have an eclipse android project, call it 'myproject'. I have also been working
I'm working on a ViewFlipper project. In this main.xml file I have created a
I have an Android Library Project that contains several styles/themes defined in its styles.xml
I have just been working on my android project in eclipse and all of
I am currently working on android project where I want to have a text
I am currently working on an android project and I have an activity, lets
I have an Android project in eclipse IDE which was working. After some imports
While working on an AppEngine connected Android project, I occasionally have problems with RequestFactory
I can't seem to get assertions working in my eclipse android project. I have

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.