Example of a functional app that on how to change the background color for future reference. You just click on a button and the background color changes. I have also used the light sensor of the device to change the color. In order to activate this function click on the Light sensor button.
You can see how the app looks like after opening the preview.png
the following files have to be changed in order to execute the app:
-
java/MainActivity.java
-
res/layout/activity_main.xml
You should have the latest version of Android Studio installed.
Recommended - Android Studio 2.1 + later
Create a new project and an 'Empty Activity' and just copy/paste the given code into the proper file of your project.
- haris-git - Initial work - haris-git
This project is licensed under the MIT License - see the LICENSE.md file for details