Docs: Fixed the code sample

Added permission in the code sample

Bug: 8770919
Change-Id: I5321100938bb876c3c061781f14c07ad9ca53180
This commit is contained in:
Hemal Patel
2016-09-29 14:53:27 -07:00
parent 9dd4194185
commit a80822a98b

View File

@@ -79,22 +79,15 @@ must also request the {@link android.Manifest.permission#BIND_ACCESSIBILITY_SERV
as shown in the following sample:</p>
<pre>
&lt;manifest&gt;
...
&lt;uses-permission ... /&gt;
...
&lt;application&gt;
...
&lt;service android:name=&quot;.MyAccessibilityService&quot;
android:label=&quot;@string/accessibility_service_label&quot;
android:permission=&quot;android.permission.BIND_ACCESSIBILITY_SERVICE&quot&gt;
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
android:label=&quot;@string/accessibility_service_label&quot;&gt;
&lt;intent-filter&gt;
&lt;action android:name=&quot;android.accessibilityservice.AccessibilityService&quot; /&gt;
&lt;/intent-filter&gt;
&lt;/service&gt;
&lt;uses-permission android:name="android.permission.BIND_ACCESSIBILITY_SERVICE" /&gt;
&lt;/application&gt;
&lt;/manifest&gt;
</pre>
<p>These declarations are required for all accessibility services deployed on Android 1.6 (API Level