90 likes | 262 Views
Screen Tester Android App. Nithin Jino John Joshua Gonzales. Purpose.
E N D
Screen Tester Android App NithinJino John Joshua Gonzales
Purpose The purpose of this application is to test how well the screen of any android device with various colors such as black to test the darkness and white to test the white balance. Colors such as red, green, and blue can be used to test for stuck/dead pixels.
Various Functions • Tap the screen to manually change the color • Shake the device to manually change the color • The colors will cycle through at certain pace that is fast enough to possibly get stuck pixels “unstuck”
Work breakdown • Nithin – CycleActivity and ShakeActivity • Josh – MainActivity and TouchActivity • Final Report and Powerpoint- done by both of us
MainActivity class • The purpose of this class is that when the buttons are pressed, the app will respond and take it to the correct screen that has the correct activity to start. • Intent – any activty is invoked by Intent. It doesn’t matter where the user is in the app
TouchmodeActivity class • Objects are created to represent the layout and the button • The method onClickListener() will respond if the button is pressed and will start the onClick() method. • The onClick() method is responsible for changing the color whenever the button is clicked
ShakemodeActivity class • Uses the built in sensors on the device to decide if the phone is being shook or not. • The constants in the class is set to “earth values” • The onResume() and onPause() methods will stop or start the use of the sensors. This will improve battery life. • onShake() and ShakeEventListener() behave like the click counterparts
Shakeeventlistener • This class was found online since there wasn’t an easier way to implement methods that will respond to shakes like onClick() and onClickListener()
Cyclemodeactivity class • Since this updates the color rapidly, a little bit of researching had to be done to see how Android would handle it. • A new thread is created and that updates the UI. • The .sleep method is used to refresh the class every .01 seconds