Hi, I'm new to the group!

Well anyway, I'm trying to create a menu and I'm getting this error:

W/ResourceType( 3344): Bad XML block: header size 151 or total size 0
is larger than data size 0


Any help would be great!


My xml code is this:

<?xml version="1.0" encoding="utf-8"?>
<menu
  xmlns:android="http://schemas.android.com/apk/res/android";>
  <item android:id="@+id/pause"
                android:title="@string/pause" />
</menu>



And this is my code to create it:

        @Override
        public boolean onCreateOptionsMenu(Menu menu){
                super.onCreateOptionsMenu(menu);
                MenuInflater inflater = getMenuInflater();
                inflater.inflate(R.menu.menu, menu);
                return true;
        }

        @Override
        public boolean onOptionsItemSelected(MenuItem item){
                switch(item.getItemId()){
                case R.id.pause:
                        System.out.println("nothing");
                        return true;
                //More items may go here
                }
                return false;
        }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to