We‟ll develop a simple strobe light app in this project. We‟ll go through accessing the button in Java code, getting the screen background colour, setting this colour and sensing button taps to change the background colour.
Our aim is to develop an Android app where the background colour of the app is varied as in a red/blue strobe light. The background colour of the app will change from red to blue or vice versa each time we click a button located in the middle of the screen. This is a very simple app but will teach the basics steps of visual programming.
The complete source code can be downloaded on our blog https://anddroidappdev.blogspot.com