API 10
/res/menu/main_app.xml
/src/com.my_app/MainActivity.java
im supposed to go to the settings screen after pressing the menu button on the phone and pressing on the "Settings" option.
but it isnt happening. wat am i doing wrong?
pls help.
/res/menu/main_app.xml
Code:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_settings"
android:title="@string/menu_settings"
android:onClick="showSettingsMenu"
android:orderInCategory="100" />
</menu>
/src/com.my_app/MainActivity.java
Code:
public void showSettingsMenu(View view){
setContentView(R.layout.settings_main);
}
im supposed to go to the settings screen after pressing the menu button on the phone and pressing on the "Settings" option.
but it isnt happening. wat am i doing wrong?
pls help.