Code example for Uri

Methods: getScheme

0
        @Override 
        public String getValue(Intent intent, ApplicationInfo callerApp, String resolvedType, 
                ApplicationInfo resolvedApp) { 
            Uri data = intent.getData(); 
            if (data != null) { 
                return data.getScheme(); 
            } 
            return null; 
        } 
    }; 
 
    public static final ValueProvider SSP = new ValueProvider("scheme-specific-part") {
        @Override 
        public String getValue(Intent intent, ApplicationInfo callerApp, String resolvedType, 
                ApplicationInfo resolvedApp) { 
            Uri data = intent.getData(); 
            if (data != null) { 
                return data.getSchemeSpecificPart(); 
            } 
            return null; 
        }