Code example for ComponentName

Methods: getPackageName

0
        @Override 
        public String getValue(Intent intent, ApplicationInfo callerApp, String resolvedType, 
                ApplicationInfo resolvedApp) { 
            ComponentName cn = intent.getComponent(); 
            if (cn != null) { 
                return cn.getPackageName(); 
            } 
            return null; 
        } 
    }; 
 
    public static final FilterFactory ACTION = new ValueProvider("action") {
        @Override 
        public String getValue(Intent intent, ApplicationInfo callerApp, String resolvedType, 
                ApplicationInfo resolvedApp) { 
            return intent.getAction(); 
        } 
    }; 
 
    public static final ValueProvider DATA = new ValueProvider("data") {
        @Override