I am trying to create an application with some menus, I follow the basic example available on the official Android website:
http://developer.android.com/guide/topics/ui/menus.html
My problems arise when I define a menu in XML. After creating the res / menu folder and creating the menu_option.xml file from eclipse .... The project (in general) gives an error message that can be read on the Problems tab:
Unparsed aapt error(s)! Check the console for output
Android Packaging Problem
So, by going to the "Console" tab to get additional information about the problem, you can read this:
[2010-06-02 11:35:54 - TestAudio] Error in an XML file: aborting build.
[2010-06-02 11:35:54 - TestAudio] W/ResourceType(11566): Bad XML block: header size 63327 or total size -144759824 is larger than data size 0
[2010-06-02 11:35:54 - TestAudio] /home/User/workspace/TestAudio/res/menu/options_menu.xml:1: error: Error parsing XML: no element found
It is strange that eclipse recognizes the menu items that I defined in XML, I can refer to them in the code without any problems, and my main actions are built. (and other files too).
, eclipse , - Android SDK - ??
XML- , , , . options_menu.xml:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/new_game"
android:title="New Game" />
<item android:id="@+id/quit"
android:title="Quit" />
</menu>
!