Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save balazsbohonyi/4427012 to your computer and use it in GitHub Desktop.
Save balazsbohonyi/4427012 to your computer and use it in GitHub Desktop.
Make sure we're running on Honeycomb or higher to use ActionBar APIs
// Make sure we're running on Honeycomb or higher to use ActionBar APIs
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
// For the main activity, make sure the app icon in the action bar
// does not behave as a button
ActionBar actionBar = getActionBar();
actionBar.setHomeButtonEnabled(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment