Android Question How to read contents from another app's screen using Accessibility service?

Inman

Well-Known Member
Licensed User
Longtime User
I have seen quite a few apps do this. There is Universal Copy that allows you to copy any text from the currently visible screen. There are apps such as MySmartPrice that overlay a "bubble button" on top of Amazon app, reads the product name and searches for lower priced listings of the same product at other sites.

I understand this is done using Accessibility service on Android. Here are a couple of links discussing this:

http://stackoverflow.com/questions/...sibilityservice-and-evoking-ui-using-dra?rq=1
http://www.axovel.com/blog/2016/05/06/taking-accessibility-service-to-next-level-android/

Can we do this in B4A?
 

DonManfred

Expert
Licensed User
Longtime User
Search the forum. There are threads about the accessibility service....
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
I did search before posting this thread and I couldn't find what I was looking for. If you did find, please post it here.
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Thanks Don. I did see the first link but NotificationListener can only read notifications and not text from another app's Activity. The second link was promising but sadly it didn't reach anywhere.
 
Upvote 0
Top