Android Question accessibility service

catyinwong

Active Member
Licensed User
Longtime User
referring to the Accessibility Service library:


I can control my phone if I know the viewid of the view in the application. But by how I can know the viewId? or is it possible to tell the phone to perform click at certain x,y location and hit whatever is on that location?
 

moster67

Expert
Licensed User
Longtime User
You need to analyze the data you receive in the Accessibility event.

You could use my project B4XIDEViewer (to resolve the problem with the limit of log characters) in order to find out the name of the views.
Alternatively, you could use the app "Accessibility Scanner" from Google which is useful.

Just be beware that not always all views have an ID available. In this case, you would need to use x and y coordinates. However, my sample library does not support that although I have written customized versions for other users which fulfill such request.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…