Big-B702 / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Originally posted as Enhancement request 617 on the SL4A group & was pointed to 
here by rjmatthews62...

Essentially, with FullScreenUI in R5 enabling complex app development in SL4A, 
it is very helpful to use IDEs in PCs/Laptops to write scripts, layouts etc.

To simplify this, I wondered if could we have a "helper" file (similar in 
concept to header files from C) that we can "import" when writing scripts in 
IDEs like PyScripter or PyDev + Eclipse & be able to use code completion, 
tooltips etc. This file can define the "Android" class and its member functions 
with API refs contained in DocString. 

I therefore wrote the attached "helper" file based on SL4A API refs.. it's just 
a barebones Android class with function defs + API ref in each function's 
docstring + "pass" as the only statement in each function's body :-) but it 
does simplify coding in an IDE.

rjmatthews62's comments were - "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" - and 
suggested that I post this here.

I DID try to take a look at the current android.py - but it's a bit over my 
head :-) so sharing the thought here for your consideration...

PS - sorry if this appears as "Issue" on the board - i'm not able to figure out 
how to mark this as "Enhancement Request"

Original issue reported on code.google.com by srinathd...@gmail.com on 1 Apr 2012 at 6:28

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by rjmatthews62 on 2 Apr 2012 at 1:32

GoogleCodeExporter commented 9 years ago

Original comment by rjmatthews62 on 3 Apr 2012 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by rjmatthews62 on 3 Apr 2012 at 2:38