Intent setClass and setComponent

public Intent setClass(Context packageContext, Class cls) {
    mComponent = new ComponentName(packageContext, cls);
    return this;

}

public Intent setComponent(ComponentName component) {
    mComponent = component;
    return this;
}


public Intent setClassName(String packageName, String className) {
    mComponent = new ComponentName(packageName, className);
    return this;
}


same!!

你可能感兴趣的:(android)