2010-07-23 66 views

回答

0

你需要知道的包和類名:

public static Intent getLaunchIntent(String packageName, String className) { 
    Intent intent = new Intent(ACTION_MAIN); 
    intent.addCategory(CATEGORY_LAUNCHER); 
    intent.setClassName(packageName, className); 
    intent.setFlags(FLAG_ACTIVITY_NEW_TASK 
      | FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); 
    return intent; 
} 
相關問題