note i am working on eclipse, java, xml and anroid.

i have a activity_right_sub_menu.xml file


    <?xml version="1.0" encoding="utf-8"?>
    <menu xmlns:android="http://schemas.android.com/apk/res/android" >
          <item android:id="@+id/I_ABOUT"
            android:title="About Us"
            android:numericShortcut="1" 
            android:alphabticShortcut="a"
            android:orderInCategory="100"
            android:showAsAction="never"/>

        <item android:id="@+id/I_PREFERENCE"
            android:title="Preferences"
            android:numericShortcut="2" 
            android:alphabticShortcut="b"
            android:orderInCategory="100"
            android:showAsAction="never" />

    </menu>


than i have a Menu.java file

public class Menu extends ListActivity
{
    /*** same as .java file ***/ 
    String classes[] = {"Main", "A_01_Text", "A_02_Email", "A_03_Photo", "A_04_Data", "example3", "example4"};



    protected void onCreate(Bundle savedInstanceState) {...} //works fine


    protected void onListItemClick(ListView l, View v, int position, long id) {...} //works fine


    //errrorrrrrrrrrrrrrrr in this function
    //i get error whee it say "R.menu.activity_right_sub_men
    @Override
    public boolean onCreateOptionsMenu(android.view.Menu menu)
    {
        //TODO Auto-generated method stub
        super.onCreateOptionsMenu(menu);
        MenuInflater blowUP = getMenuInflater();
        blowUP.inflate(R.menu.activity_right_sub_menu, menu);
            return true;
        }/*** end of  sub menu method ***/
    }/*** end of main method ***/
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.