so what actually happens when compiling the APK using the method described in the book is slightly different from what you described. What is really going on , so this is that after installing the APK file, it will check if the Python user is installed, not SL4A . If the user does not have Python installed, a download is requested , similar to how some applications request a BusyBox installation to use certain commands. This means that the user does not need to have a scripting environment or actually even know what python is.
As for compiling third-party modules / libs into your APK, what happens when you compile in Eclipse, it points to the folder on the computer containing python and compiles from there. This means that all you need to do to get additional modules or libraries in the APK is to make sure they are included in the folder that Eclipse is looking for when compiling the APK. By default, I think this is your native Python folder, but I'm not 100% sure, so someone, please correct me if I am wrong.
Hope this helps!
source share