This is an example Android Application that permits to manage gyroscope and light sensor. It is made uo from three (3) activity: main, second and third. Moreover, an async HTTP GET is implemented with loop library. The mangare sensor is implemented with Model-View-Controller design patter.
Import the code from GitHub, using two approaches:
- download and extract the code in a specific folder. Open Android Studio and close if a project is opened. When the first windows is opened select Import Project -> Gradle project.
- import the code from GitHub repository. Choose Import Project From -> Select GitHub.
Model-View-Controller design pattern Environment sensor [Sensor overview]{https://developer.android.com/guide/topics/sensors/sensors_overview} [Loop library documentation]{https://loopj.com/android-async-http/} [Code style Google]{https://google.github.io/styleguide/javaguide.html}
This code is developed as an example for the seminar of programming languages at University of Geneva.