Code example for ActivityInfo

Methods: getIconResource

0
            return Util.getResourceUri(getContext(), mActivityInfo.applicationInfo, resourceId);
        } 
    } 
 
    private int getSourceIconResource() { 
        return mActivityInfo.getIconResource();
    } 
 
    public boolean voiceSearchEnabled() { 
        return mSearchable.getVoiceSearchEnabled();
    } 
 
    public Intent createVoiceSearchIntent(Bundle appData) {
        if (mSearchable.getVoiceSearchLaunchWebSearch()) {
            return createVoiceWebSearchIntent(appData);
        } else if (mSearchable.getVoiceSearchLaunchRecognizer()) {
            return createVoiceAppSearchIntent(appData);
        } 
        return null; 
    }