You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>You can also programmatically tell the device to lock immediately:</p>
677
665
<pre>
678
666
DevicePolicyManager mDPM;
679
-
mDPM.lockNow();</pre>
667
+
mDPM.lockNow();
668
+
</pre>
680
669
681
670
682
671
@@ -692,12 +681,12 @@ wiped after a specific number of failed password attempts.</p>
692
681
<pre>
693
682
DevicePolicyManager mDPM;
694
683
mDPM.wipeData(0);</pre>
695
-
<p>The {@link android.app.admin.DevicePolicyManager#wipeData wipeData()} method takes as its parameter a bit mask of
696
-
additional options. Currently the value must be 0. </p>
684
+
<p>The {@link android.app.admin.DevicePolicyManager#wipeData wipeData()} method takes as its
685
+
parameter a bit mask of additional options. Currently the value must be 0. </p>
697
686
698
687
<h4>Disable camera</h4>
699
688
<p>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. </p>
700
-
<p>You control whether the camera is disabled by using the
689
+
<p>You control whether the camera is disabled by using the
701
690
{@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:</p>
See the <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.html"> Device Administration API sample</a> for a complete
726
-
example of how to enable storage encryption.</p>
714
+
See the Device Administration API sample for a complete example of how to enable storage encryption.
0 commit comments