Deprecated
in API level 37
Class Overview
This class provide active/deactive/get status for license.
Param
Usage
Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/license"); ContentValues contentValues = new ContentValues(); contentValues.put("key", "YOUR_LICENSE_NUMBER"); String selection = "key=?"; String[] selectionArgs = new String[] {""}; mContext.getContentResolver().update(uri, contentValues, selection, selectionArgs);
Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/license"); String selection = "key=?"; String[] selectionArgs = new String[] {""}; Cursor cursor = mContext.getContentResolver().query(uri, null, selection, selectionArgs, null); boolean isLicenseActivated = false; if (cursor != null) { cursor.moveToFirst(); isLicenseActivated = Boolean.parseBoolean(cursor.getString(0)); }
Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/license"); String selection = "key=?"; String[] selectionArgs = new String[] {"YOUR_LICENSE_NUMBER"}; mContext.getContentResolver().delete(uri, selection, selectionArgs); |
Permission
Permission is not required |
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
String
CONTENT_URI_STRING
Since: API level 36
Constant Value:
"content://com.samsung.android.knox.sdk/license"
public
static
final
String
PATH
Since: API level 36
Constant Value:
"license"
Fields
public
static
final
String
LICENSE_PERMISSION
Since: API level 36
public
static
final
String
RUNTIME_PERMISSION
Since: API level 36