Unable to start accessibility service
<p>I have took some of the code samples online. But Im not able to start the accessibility service. Can anyone please tell me what is the mistake Im doing.. I have attached the source code.</p>

<p>public class MyService extends AccessibilityService {</p>

<pre><code>@Override
protected void onServiceConnected() {
    Log.d("TAG", "onServiceConnected invoked");
    super.onServiceConnected();
    AccessibilityServiceInfo info = new AccessibilityServiceInfo();
    info.eventTypes = AccessibilityEvent.TYPE_VIEW_CLICKED |
            AccessibilityEvent.TYPE_VIEW_FOCUSED;
    info.packageNames = new String[]
            {"com.example.android.myFirstApp", "com.example.android.mySecondApp"};
    info.feedbackType = AccessibilityServiceInfo.FEEDBACK_SPOKEN;
    info.notificationTimeout = 100;
    this.setServiceInfo(info);
}

@Override
public void onCreate() {
    // TODO Auto-generated method stub
    super.onCreate();

    Log.d("TAG", "on create called.");
}


@Override
public void onAccessibilityEvent(AccessibilityEvent event) {
    Log.d("TAG", "onAccessibilityEvent invoked");
}

@Override
public void onInterrupt() {

}
</code></pre>

<p>}</p>

<p>Manifest file:</p>

<pre><code>        &lt;service 
        android:label="@string/app_name"
        android:enabled="true"
        android:exported="false"
        android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
        android:name=".MyService"&gt;
        &lt;intent-filter&gt;
             &lt;action android:name="android.accessibilityservice.AccessibilityService"/&gt;
        &lt;/intent-filter&gt;
    &lt;/service&gt;
</code></pre>

<p>In mainActivity.java, Im starting the service as follows:</p>

<pre><code>    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Intent _i = new Intent(this, MyService.class);
    startService(_i);

}
</code></pre>
