This is an example of "How to use QPython in my android development?" http://qpython.org/question/18/how-to-use-qpython-in-my-android-development/
The steps are:
- Prepare the Python script, use the "print" statement to output the result
- Use the "startActivityForResult" to call the QPython API with the Python code as the parameter
- Get and process the result in "onActivityResult"
If you have any question, please ask in http://qpython.org