AI2 Component
(Version nb184)
|
Static Public Member Functions | |
static String | getExternalStoragePath (Context context, boolean forcePrivate) |
static String | getExternalStoragePath (Context context) |
static File | getExternalStorageDir (Context context) |
static File | getExternalStorageDir (Context context, boolean forcePrivate) |
static String | getReplAssetPath (Context context, boolean forcePrivate) |
static String | getReplAssetPath (Context context) |
static String | getReplDataPath (Context context, boolean forcePrivate) |
static String | getReplDataPath (Context context) |
Utility functions to handle API changes in Android Q.
Definition at line 18 of file QUtil.java.
|
static |
Get the SDK-specific external storage directory. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific). If the
flag is true, then the app-private directory will always be returned on devices running Android 2.2 Froyo or later.
For more details on why this is needed, see the deprecation notice at https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()
context | a context, such as a Form |
Definition at line 72 of file QUtil.java.
|
static |
Get the SDK-specific external storage directory. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific). If the
flag is true, then the app-private directory will always be returned on devices running Android 2.2 Froyo or later.
For more details on why this is needed, see the deprecation notice at https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()
context | a context, such as a Form |
forcePrivate | force the use of the context-specific path |
Definition at line 93 of file QUtil.java.
|
static |
Get the SDK-specific external storage path. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific).
For more details on why this is needed, see the deprecation notice at https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()
context | a context, such as a Form |
Definition at line 53 of file QUtil.java.
|
static |
Get the SDK-specific external storage path. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific). If the
flag is true, then the app-private directory will always be returned on devices running Android 2.2 Froyo or later.
For more details on why this is needed, see the deprecation notice at https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()
context | a context, such as a Form |
forcePrivate | force the use of the context-specific path |
Definition at line 36 of file QUtil.java.
|
static |
Get the SDK-specific path to where the REPL assets live. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific).
For more details on why this is needed, see the deprecation notice at https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()
context | a context, such as a Form |
Definition at line 143 of file QUtil.java.
|
static |
Get the SDK-specific path to where the REPL assets live. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific). If the
flag is true, then the app-private directory will always be returned on devices running Android 2.2 Froyo or later.
For more details on why this is needed, see the deprecation notice at https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()
context | a context, such as a Form |
forcePrivate | force the use of the context-specific path |
Definition at line 122 of file QUtil.java.
|
static |
Get the SDK-specific path to where the REPL data live. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific).
context | a context, such as a Form |
Definition at line 174 of file QUtil.java.
|
static |
Get the SDK-specific path to where the REPL data live. On Android Q and later, this is always an app-private directory on the "external" storage. On earlier versions of Android, this returns the external storage path for all apps (although possibly user-specific). If the
flag is true, then the app-private directory will always be returned on devices running Android 2.2 Froyo or later.
context | a context, such as a Form |
forcePrivate | force the use of the context-specific path |
Definition at line 158 of file QUtil.java.