@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
    public static UserManager getUserManager(Context context) {
        return (UserManager) context.getSystemService(Context.USER_SERVICE);
    }
@ TargetApi ( Build . VERSION_CODES . JELLY_BEAN_MR1 ) public static UserManager getUserManager ( Context context ) { return ( UserManager ) context . getSystemService ( Context . USER_SERVICE ) ; }
Get the {@link android.os.UserManager} service for this context.
@param context the context.
@return the {@link android.os.UserManager}