diff options
| author | 2016-09-29 14:53:27 -0700 | |
|---|---|---|
| committer | 2016-09-29 14:53:27 -0700 | |
| commit | a80822a98b6928f56c5b9b40be45bb8c4340dd61 (patch) | |
| tree | 8a310d11a5928f393f835a0551c6b2ea8b9f35bb | |
| parent | 9dd4194185a75aad1688bf70a9640c44f05ce1bd (diff) | |
Docs: Fixed the code sample
Added permission in the code sample
Bug: 8770919
Change-Id: I5321100938bb876c3c061781f14c07ad9ca53180
| -rw-r--r-- | docs/html/guide/topics/ui/accessibility/services.jd | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/html/guide/topics/ui/accessibility/services.jd b/docs/html/guide/topics/ui/accessibility/services.jd index c6db855adba4..dbc69ef884ee 100644 --- a/docs/html/guide/topics/ui/accessibility/services.jd +++ b/docs/html/guide/topics/ui/accessibility/services.jd @@ -79,22 +79,15 @@ must also request the {@link android.Manifest.permission#BIND_ACCESSIBILITY_SERV as shown in the following sample:</p> <pre> -<manifest> - ... - <uses-permission ... /> - ... <application> - ... <service android:name=".MyAccessibilityService" - android:label="@string/accessibility_service_label" - android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"> + android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE" + android:label="@string/accessibility_service_label"> <intent-filter> <action android:name="android.accessibilityservice.AccessibilityService" /> </intent-filter> </service> - <uses-permission android:name="android.permission.BIND_ACCESSIBILITY_SERVICE" /> </application> -</manifest> </pre> <p>These declarations are required for all accessibility services deployed on Android 1.6 (API Level |