@Override
    public void onBackPressed() {
        // back may exit the app instead of closing the search action bar
        if (searchView != null && !searchView.isIconified()) {
            searchView.setIconified(true);
            searchItem.collapseActionView();
        } else {
            super.onBackPressed();
        }
    }
if no connector can log in, set visibility of warning message accordingly
main/src/main/java/cgeo/geocaching/MainActivity.java