From 56a7394d58abbd2c326fc571bd8bdf0cc4790084 Mon Sep 17 00:00:00 2001 From: Valentin Schneider Date: Fri, 22 Jun 2018 09:29:25 +0100 Subject: [PATCH] utils/android: Add the definition of some intent flags --- devlib/utils/android.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devlib/utils/android.py b/devlib/utils/android.py index 8b1d0d6..0a9dfeb 100755 --- a/devlib/utils/android.py +++ b/devlib/utils/android.py @@ -75,6 +75,12 @@ ANDROID_VERSION_MAP = { 1: 'BASE', } +# See https://developer.android.com/reference/android/content/Intent.html#setFlags(int) +INTENT_FLAGS = { + 'ACTIVITY_NEW_TASK' : 0x10000000, + 'ACTIVITY_CLEAR_TASK' : 0x00008000 +} + # Initialized in functions near the botton of the file android_home = None