damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.44k stars 800 forks source link

UI Screen API #61

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

What should be supported?

1. It will better, if sl4a includes ui functionality for standard actions like 
touch event on any widget present on screen.
2. Any api to fetch all Widget ids, & Strings present on screen

Original issue reported on code.google.com by vinayak....@gmail.com on 12 Sep 2012 at 9:23

Copied from original issue: damonkohler/android-scripting#658

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

exists - anything majorly different in your request? 

http://code.google.com/p/android-scripting/wiki/FullScreenUI

http://code.google.com/p/python-for-android/wiki/fullscreenwrapper2

Original comment by srinathd...@gmail.com on 12 Sep 2012 at 9:40

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

I hav seen these links..
but what i want is to select any widget on screen by fetching its id or string 
attached to it.
The example displayed in first link shows the hardcoded xml layout, but what if 
i want to fetch current screen layouts widgets ids & strings?
API: fullShow() will show the layout after passing xml file object..
API: fullQuery() will show all ids & strings but it requires "fullShow()"  to 
be executed first..
Is there any way to fetch current screens ids & string like  fullQuery() ?

Original comment by vinayak....@gmail.com on 12 Sep 2012 at 10:17

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

hmmm.... don't know if that's even possible in android (let alone scripting 
environment)... i believe android's vm sandboxes apps and the preferred 
interaction medium are intents 

Original comment by srinathd...@gmail.com on 12 Sep 2012 at 1:47