I have an app in the making, and have a Preferences activity which allows the user to choose settings for the app.
What I need help with is choosing how the preference activity will be accessed by the user. Some tutorials actually have a button in the main activity labeled, for example, "preferences" which would allow the user to visit that activity.
Others (the way I have it currently) just rely on the user clicking the menu button on their phone. I read that some phones do not have a menu button anymore, and the Android team is trying to get rid of a physical navigation button requirements.
So I am a little confused, what is the general consensus on this topic? Thank you.
EDIT: Here is my current menu creation code
@Override
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(Menu.NONE, 0, 0, "Settings");
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case 0:
startActivity(new Intent(this, Preferences.class));
return true;
}
return false;
}