Home | History | Annotate | Download | only in accessibility

Lines Matching full:service

2 page.title=Developing an Accessibility Service
17 <li><a href="#create">Create Your Accessibility Service</a></li>
18 <li><a href="#configure">Configure Your Accessibility Service</a></li>
35 installed on Android devices. An accessibility service can communicate to the
38 lesson covers how to create an accessibility service, process information
43 <h2 id="create">Create Your Accessibility Service</h2>
44 <p>An accessibility service can be bundled with a normal application, or created
45 as a standalone Android project. The steps to creating the service are the same
68 <p>Like any other service, you also declare it in the manifest file.
70 so that the service is called when applications fire an
76 &lt;service android:name=".MyAccessibilityService"&gt;
81 &lt;/service&gt;
86 <p>If you created a new project for this service, and don't plan on having an
90 <h2 id="configure">Configure Your Accessibility Service</h2>
91 <p>Setting the configuration variables for your accessibility service tells the
93 respond to? Should the service be active for all applications, or only specific
101 and configure your service in there.</p>
106 // Set the type of events that this service wants to listen to. Others
107 // won't be passed to this service.
111 // If you only want this service to work with specific applications, set their
112 // package names here. Otherwise, when the service is activated, it will listen
117 // Set the type of feedback your service will provide.
121 // for the type of AccessibilityEvent generated. This service *is*
123 // general-purpose service, it would be worth considering setting the
136 service using an XML file. Certain configuration options like
138 configure your service using XML. The same configuration options above, defined
142 &lt;accessibility-service
155 your service declaration, pointing at the XML file. If you stored your XML file
159 &lt;service android:name=".MyAccessibilityService"&gt;
165 &lt;/service&gt;
169 <p>Now that your service is set up to run and listen for events, write some code
282 <p>Now you have a complete, functioning accessibility service. Try configuring