Jayant Arora
Jayant Arora

Reputation: 1261

How i put my App on top of Accessibility Permission List Android OS?

enter image description here

Hey Guys! I'm building an app that uses accessibility permission, i ask user on runtime to give this permission as per Android Developers guidelines. But my app is shown always at the bottom of the list of Accessibility Permision Settings Screen, refer screenshot my app is "MyAccessibilityService" while other apps like Jugnoo , Makhichoose .. always appear on top even if i uninsatll them and install my app at 1st then install them again, i tried all iterations result is same . So there's some thing else how android OS is managing this list, means how it is sorting it?? How can i make my app appear on top ? Pls Help.

Upvotes: 0

Views: 2800

Answers (2)

MujeebRahaman
MujeebRahaman

Reputation: 19

Add priority to intent filter:

<intent-filter android:priority="99">
    <action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>

Upvotes: 2

MobA11y
MobA11y

Reputation: 18880

If you had a phone book, and you were use to the ordering of that phone book. Would forcing "John Smith" to appear between "AAA, AAAA" and "AAA, AAAB" really be easier to access? The phone book creator obviously would not do this. Your service is your service. The settings app controls where your service goes in that list. End of story.

On my device it appears to be installation order, oldest last. The only way you can get your service to show up on the top of that list, would be to have users uninstall all of their services, install yours, and then reinstall all of their services again. There's nothing saying in future releases this will remain that way, or that your device could be different.

Upvotes: 0

Related Questions