dya2 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

SL4A Android class definition "helper" files to support SL4A development on PCs #617

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With FullScreenUI in R5 enabling complex app development in SL4A, it is  
increasingly helpful to IDEs in PCs/Laptops to write scripts.

To simplify this, could we have a set of "helper" files (similar to header 
files in C) that define the "Android" class for the different supported 
languages in the Downloads section to "import" when coding in IDEs.

These files should define all the "Android" class member functions preferably 
including the API reference in the respective DocString format of each language 
so that IDEs can pick it up  for AutoComplete, ToolTip etc.

As a start, I'm attaching "android.py" file defining the "Android" class 
including API Reference from the Wiki for Python - i've tested this on 
PyScripter IDE.

Original issue reported on code.google.com by srinathd...@gmail.com on 31 Mar 2012 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
This is a very nice idea, but as it currently stands, android.py is the 
standard naming script that defines the Android class that handles the rpc link 
to the sl4a facades.
I want to keep the standard android.py short and sweet... 
But this could be renamed anndroiddev.py or similar, and be a class derived 
from the standard Android class.
I like the idea of the Helper classes, but maintaining them will be up to the 
various language maintainers.

PS: You should send this particular example over to 
http://code.google.com/p/python-for-android/

Original comment by rjmatthews62 on 31 Mar 2012 at 11:55

GoogleCodeExporter commented 9 years ago
A working version is now available here:
http://code.google.com/p/python-for-android/wiki/HelperFiles

Original comment by rjmatthews62 on 9 Apr 2012 at 1:11