Skip to main content

Posts

Showing posts from September, 2018
 

How to Create a Color Changing Sensor Game in Android Studio with Kotlin

Hello World, Many of us acknowledge about Sensors. Sensors are very significant parts of our Smartphone. There are many types of Sensors. In this article, we will learn " how to create a color changing sensor game in the android studio with kotlin " support. Lets Learn About Sensors There are many types of sensors in our smartphone. We can build different types of application with the sensors. For now, we will use the accelerometer. The accelerometer measures the acceleration force in the form of m/sq. And it applies three physical axes(x,y,z) into the device. Its also measure the force of gravity. When we shake or tilt the phone, its detect the motion. If you have studied coordinate in high school, you can easily understand the accelerometer and another sensor as well. Create a new Android Studio project  Create a new project in Android Studio Name it "Sensor Game". Tick Kotlin support, in your project. Then choose an empty activ