FileDocCategorySizeDatePackage
ApplicationInfo.javaAPI DocAndroid 1.5 API2445Wed May 06 22:41:08 BST 2009com.example.android.home

ApplicationInfo

public class ApplicationInfo extends Object
Represents a launchable application. An application is made of a name (or title), an intent and an icon.

Fields Summary
CharSequence
title
The application name.
android.content.Intent
intent
The intent used to start the application.
android.graphics.drawable.Drawable
icon
The application icon.
boolean
filtered
When set to true, indicates that the icon has been resized.
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object o)

        if (this == o) {
            return true;
        }
        if (!(o instanceof ApplicationInfo)) {
            return false;
        }

        ApplicationInfo that = (ApplicationInfo) o;
        return title.equals(that.title) &&
                intent.getComponent().getClassName().equals(
                        that.intent.getComponent().getClassName());
    
public inthashCode()

        int result;
        result = (title != null ? title.hashCode() : 0);
        final String name = intent.getComponent().getClassName();
        result = 31 * result + (name != null ? name.hashCode() : 0);
        return result;
    
final voidsetActivity(android.content.ComponentName className, int launchFlags)
Creates the application intent based on a component name and various launch flags.

param
className the class name of the component representing the intent
param
launchFlags the launch flags

        intent = new Intent(Intent.ACTION_MAIN);
        intent.addCategory(Intent.CATEGORY_LAUNCHER);
        intent.setComponent(className);
        intent.setFlags(launchFlags);