How to open AccessibilityService by default in Android -


how open accessibilityservice default in android ? don't know how .

    <service         android:name=".notificationfetcherservice"         android:permission="android.permission.bind_accessibility_service" >         <intent-filter>             <action android:name="android.accessibilityservice.accessibilityservice" />         </intent-filter>          <meta-data             android:name="android.accessibilityservice"             android:resource="@xml/haotingmetadata" />     </service>  <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"   android:accessibilityeventtypes="typenotificationstatechanged"   android:accessibilityfeedbacktype="feedbackallmask"   android:notificationtimeout="200" /> 

accessibilityservices can headless (no ui), if mean how "start" service, short answer is: can't.

they not other services in operating system controls them starting , stopping based on settings user has selected. best can launch accessibility settings page , user enable you:

intent gotosettings = new intent(settings.action_accessibility_settings); gotosettings.addflags(intent.flag_activity_new_task | intent.flag_activity_no_history); startactivity(gotosettings); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -