Code example for FragmentActivity

Methods: getSystemService

0
        // initialize the action bar title with the activity title for single source 
        ActivityMixin.setTitle(this, getTitle());
    } 
 
    protected void hideKeyboard() { 
        ((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0);
    } 
}