diff --git a/docs/html/guide/topics/admin/device-admin.jd b/docs/html/guide/topics/admin/device-admin.jd index a47449858d2e3..2d02e51a2ba41 100644 --- a/docs/html/guide/topics/admin/device-admin.jd +++ b/docs/html/guide/topics/admin/device-admin.jd @@ -28,12 +28,6 @@ page.tags="devicepolicymanager","policy","security"
The examples used in this document are based on the -Device Administration API -sample, which is included in the SDK samples. For information on downloading and -installing the SDK samples, see -Getting the Samples. Here is the -complete code for -the sample.
-The -sample application offers a demo of device admin features. It presents users +
The examples used in this document are based on the Device Administration API
+sample, which is included in the SDK samples (available through the
+Android SDK Manager) and located on your system as
+<sdk_root>/ApiDemos/app/src/main/java/com/example/android/apis/app/DeviceAdminSample.java.
The sample application offers a demo of device admin features. It presents users with a user interface that lets them enable the device admin application. Once they've enabled the application, they can use the buttons in the user interface to do the following:
@@ -676,7 +664,8 @@ mDPM.setMaximumTimeToLock(mDeviceAdminSample, timeMs);You can also programmatically tell the device to lock immediately:
DevicePolicyManager mDPM; -mDPM.lockNow();+mDPM.lockNow(); + @@ -692,12 +681,12 @@ wiped after a specific number of failed password attempts.
DevicePolicyManager mDPM; mDPM.wipeData(0);-
The {@link android.app.admin.DevicePolicyManager#wipeData wipeData()} method takes as its parameter a bit mask of -additional options. Currently the value must be 0.
+The {@link android.app.admin.DevicePolicyManager#wipeData wipeData()} method takes as its + parameter a bit mask of additional options. Currently the value must be 0.
Beginning with Android 4.0, you can disable the camera. Note that this doesn't have to be a permanent disabling. The camera can be enabled/disabled dynamically based on context, time, and so on.
-You control whether the camera is disabled by using the +
You control whether the camera is disabled by using the {@link android.app.admin.DevicePolicyManager#setCameraDisabled(android.content.ComponentName, boolean) setCameraDisabled()} method. For example, this snippet sets the camera to be enabled or disabled based on a checkbox setting:
private CheckBoxPreference mDisableCameraCheckbox; @@ -708,8 +697,8 @@ mDPM.setCameraDisabled(mDeviceAdminSample, mDisableCameraCheckbox.isChecked());<-
Beginning with Android 3.0, you can use the +
Beginning with Android 3.0, you can use the {@link android.app.admin.DevicePolicyManager#setStorageEncryption(android.content.ComponentName,boolean) setStorageEncryption()} method to set a policy requiring encryption of the storage area, where supported.
@@ -722,5 +711,5 @@ ComponentName mDeviceAdminSample; mDPM.setStorageEncryption(mDeviceAdminSample, true);-See the Device Administration API sample for a complete -example of how to enable storage encryption.
+See the Device Administration API sample for a complete example of how to enable storage encryption. + \ No newline at end of file