0
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 ***/
2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by jalpesh_007
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.