Java Code Examples for android.content.Intent#FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET

The following examples show how to use android.content.Intent#FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApiCompatibilityUtils.java    From cronet with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@SuppressWarnings("deprecation")
public static int getActivityNewDocumentFlag() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        return Intent.FLAG_ACTIVITY_NEW_DOCUMENT;
    } else {
        return Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET;
    }
}
 
Example 2
Source File: ApiCompatibilityUtils.java    From 365browser with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("deprecation")
public static int getActivityNewDocumentFlag() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        return Intent.FLAG_ACTIVITY_NEW_DOCUMENT;
    } else {
        return Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET;
    }
}
 
Example 3
Source File: Intents.java    From pocketknife with Apache License 2.0 4 votes vote down vote up
@IntentBuilder(action = "TEST", flags = Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET | Intent.FLAG_ACTIVITY_NEW_TASK)
Intent getFlagIntent();
 
Example 4
Source File: Intents.java    From pocketknife with Apache License 2.0 4 votes vote down vote up
@IntentBuilder(action = "TEST",
        categories = {"ONE", "TWO", "THREE", "FOUR" },
        cls = SimpleActivity.class,
        flags = Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET | Intent.FLAG_ACTIVITY_NEW_TASK,
        type = "application/html")
Intent getAllPlusExtra(@Data String data, int i);
 
Example 5
Source File: Intents.java    From pocketknife with Apache License 2.0 4 votes vote down vote up
@IntentBuilder(action = "TEST",
        categories = {"ONE", "TWO", "THREE", "FOUR" },
        cls = SimpleActivity.class,
        flags = Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET | Intent.FLAG_ACTIVITY_NEW_TASK,
        type = "application/html")
Intent getAllDataUriPlusExtra(@Data Uri data, int i);