@Override
 protected void onResume() {
   super.onResume();
   showPreferences();
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   getSupportActionBar().setDisplayHomeAsUpEnabled(true);
 }