Step 1.
You will need to install both Python for Android and SLA4 onto your Android phone. However, they are considered "unknown application" so you have to allow unknown application to install on your phone by checking the option at setting->security.
I shall not go through the installation as it is rather straight forward.
Step 2.
Next you are ready to code in Python!! Just start SLA4A application and you will see a list of sample scripts there.
The API for Python on Android can be found here and you can find some tutorial here. Also do note that similar to Python on PC, you will also be able to install packages and use it when it is available.
A few interesting things you will be able to do with this...
- Take photo/video
- Location discovery
- Bluetooth connectivity
- SMS
- Whatsapp (I have not tried this myself)
A sample example I did here is to use location discovery to get the coordinate of the current location. Using this coordinates, I launch Google Map and it will display your location.
No comments:
Post a Comment