Is it possible to have an app overlay on another app and be able to grab text from it. If I had a browser opened and have an app that can grab text from the website and placed into text to speech, is this possible or is there something similar to this?
TalkBack is an app which uses android accessibility services to read out the text underneath when a user touches it. So you can also make your own accessibility service.
Related
What I want to do is to make an Android app with the same functionality callable by typing special words into the Google keyboard at any moment in which it is open (even if it is used into another app).
The easiest solution to achieve this is by making my own keyboard and let the user set it as default but I would prefer to insert this functionality to the Gboard so the user does not have to change his keyboard application
So the question is:
How can I know from a service what's typed into the Gboard even when the keyboard is used by other applications?
is it possible?
I have made an IME depend on Google's SoftKeyboard Sample. But while I set it as my System default IME, the other APP also user it, My custom IME is not friendly to other APP. I only want to use it in my APP, is there any good advice?
Is it possible to get "other app's" selected text?
Want to created an translation service.
When called, the service will automatically translate the selected text in the front app.
If not possible for non-rooted devices, is it possible for rooted devices.
On Android 6.0+, the appropriate way to do this is to support ACTION_PROCESS_TEXT. This will add your app to the floating action menu that appears when the user selects text, and the user can elect to launch your activity to let you translate that text. Note that Google themselves already has an app (Translate) that does this.
Only if you're the keyboard. Otherwise there's no API for this.
I'm actually toying with doing something similar- my plan was to do it as an accssebility service. So the user would tap on something, we'd get the description from that app, and then translate the description. Basically a screen reader that does translation.
I have an app that runs in the background. I want it to click/touch some points on screen as well as write some text automatically (example, open Browser, type google.com, search something). But as I am informed, there is no awt Robot in android so, how is this possible? Because I can't use keyPress, mouseMove and mousePress/mouseRelease commands...
it is against android policie to do the things you ask. you may not make clicks for users and you may not present them with pop-ups, whether its google that pops- up or not.
I wish to create my own custom keyboard on android. It seems the below project on google code project should be able to achieve this. But to extension to this what I also want to add is ability to handle browser events when user is using custom keyboard. ie if user clicks on browser address bar or any text box on the page opened I should be able to determine that as well? Is there a way possible?
http://code.google.com/p/android-misc-widgets/source/checkout
Thanks,
nil
I'm not sure what your question is, but I think you are asking how to create a keyboard that is used when the user clicks on textfields in other apps. Is that right?
If you want to create your own virtual keyboard then you should definitely start by reading the Android IME Docs they are really good and even provide code for a example keyboard that you can download.