WARNING: Currently, as it is, the scripts and below instructions do not work when I tested them on a Nexus 6P running Android 7.1.2.
Plotting an Android phone's accelerometer, gyro and magnetometer values with Python using SL4A, Py4A and Flot. Short video demo can be found here.
- Download and install the latest SL4A App apk file.
- Then download and install Py4A App apk file.
- Open Python for Android and press Install
Copy the SensorGraph file into /sdcard/sl4a/scripts
- Open the SL4A app:
- Click on SensorGraph
- Click on Accelerometer
- Click on accGraph.py
- Click on the 'Shell' icon(it looks like this) to run the program.
- Swipe down on your status bar. - Click on SL4A service - Long press on the program name - Click on 'Stop' - Press back and click on 'Yes'
