Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active Apr 16, 2017
Embed
What would you like to do?
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
/* ... */
case R.id.settings_item:
Intent settingsIntent = new Intent(this, SettingsActivity.class);
startActivity(settingsIntent);
return true;
/* ... */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment