About android,how to use the AccessibilityService
<p>hello every one
    i am trying to use AccessibilityService.but it not work.can somebody help me to point my mistake? thanks.</p>

<p>MyAccessibilityService.java</p>

<pre><code> public class MyAccessbilityService extends AccessibilityService {

 @Override
    public void onAccessibilityEvent(AccessibilityEvent event) {
    // TODO Auto-generated method stub
      switch(event.getEventType()){
        case AccessibilityEvent.TYPE_VIEW_CLICKED:
          Toast.makeText(getApplicationContext(),"Click", Toast.LENGTH_SHORT).show();
          break;

        case AccessibilityEvent.TYPE_VIEW_LONG_CLICKED:
          Toast.makeText(getApplicationContext(),"Long click", Toast.LENGTH_SHORT).show();
          break;

        case AccessibilityEvent.TYPE_VIEW_FOCUSED:
           Toast.makeText(getApplicationContext(),"Focuse change", Toast.LENGTH_SHORT).show();
           break;

        case AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED:
           Toast.makeText(getApplicationContext(),"Text change", Toast.LENGTH_SHORT).show();
           break;
         }
       }

         @Override
         public void onInterrupt() {
          // TODO Auto-generated method stub
         }

         @Override
         protected void onServiceConnected() {
          // TODO Auto-generated method stub
          super.onServiceConnected();
          AccessibilityServiceInfo info = new AccessibilityServiceInfo();
          info.feedbackType = AccessibilityServiceInfo.DEFAULT;
          setServiceInfo(info);
         }
        }
</code></pre>

<p>the mainfest.xml like this</p>
