Code example for ResolveInfo

Methods: loadLabel

0
        } 
    } 
 
    /** Get the title for a resolve info. */ 
    private String getResolveInfoTitle(ResolveInfo info) {
        CharSequence label = info.loadLabel(getPackageManager());
        if (label == null) label = info.activityInfo.name;
        return label != null ? label.toString() : null;
    } 
 
    @Override 
    protected void onListItemClick(ListView l, View v, int position, long id) {
        if (position >= mResolveList.size()) return;
 
        ResolveInfo info = mResolveList.get(position);
         
        switch (mDisplayMode) {
 
            case DISPLAY_MODE_LAUNCH: 
                // We can go ahead and return the clicked info's intent 
Connect your IDE to all the code out there  Get Codota for Java