Code example for Context

Methods: startActivity

0
            mImm.hideSoftInputFromWindow(getWindowToken(), 0);
        } 
    } 
 
    private void startActivity(Intent intent) {
        mContext.startActivity(intent);
    } 
 
    private void showConfigureInputMethods() { 
        Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
                | Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(intent);
    } 
 
    private View createInputMethodItem(
            final InputMethodInfo imi, final InputMethodSubtype subtype) {
        final CharSequence subtypeName; 
        if (subtype == null || subtype.overridesImplicitlyEnabledSubtype()) { 
            subtypeName = null;