Code example for ComponentName

Methods: flattenToString

0
            appName = ri.activityInfo.loadLabel(pm).toString();
            icon = ri.activityInfo.loadIcon(pm);
        } 
 
        public String getComponentName() {
            return component.flattenToString();
        } 
 
        public Drawable getIcon() {
            return icon;
        } 
 
        public String getName() {
            return appName;
        } 
    } 
 
    public class AppArrayAdapter extends ArrayAdapter {
        public final List<AppPackage> apps;
        public final Context mContext;