Code example for Uri

Methods: getSchemeSpecificPart

0
        @Override 
        public String getValue(Intent intent, ApplicationInfo callerApp, String resolvedType, 
                ApplicationInfo resolvedApp) { 
            Uri data = intent.getData(); 
            if (data != null) { 
                return data.getSchemeSpecificPart(); 
            } 
            return null; 
        } 
    }; 
 
    public static final ValueProvider HOST = new ValueProvider("host") {
        @Override 
        public String getValue(Intent intent, ApplicationInfo callerApp, String resolvedType, 
                ApplicationInfo resolvedApp) { 
            Uri data = intent.getData(); 
            if (data != null) { 
                return data.getHost(); 
            } 
            return null; 
        }