Code example for ResolveInfo

Methods: loadLabel

    /** Get the title for a resolve info. */ 
    private String getResolveInfoTitle(ResolveInfo info) {
        CharSequence label = info.loadLabel(getPackageManager());
        if (label == null) label =;
        return label != null ? label.toString() : null;
    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