Skip to content

JimSeker/sensors

Repository files navigation

Android Hardware Sensor and input Examples

eclipse/ has the examples in that eclipse can load. These are no longer updated. Otherwise everything are Android Studio projects

Input (java) demo the keyboard, touch, gesture listeners, using an imageview

Input_tk (kotlin) demo the keyboard, touch, gesture listeners, using an imageview

input2 (java) demo the keyboard, touch, gesture listeners using the whole screen.

input2_tk (kotlin) demo the keyboard, touch, gesture listeners using the whole screen.

pitchroll (java) demo the sensors in the device with orientation

pitchroll_tk (kotlin) demo the sensors in the device with orientation

pitchroll2 (java) demo the sensors in the device with accelerometer, meagnetic_field

pitchroll2_tk (kotlin) demo the sensors in the device with accelerometer, meagnetic_field

pitchroll3 (java) demo the sensors in the device with accelerometer, meagnetic_field variant from 2

pitchroll3_tk (kotlin) demo the sensors in the device with accelerometer, meagnetic_field variant from 2

8ball is a demo using the magic 8 ball example. It use the linear acceleration to determine if the "ball" is being shaken.

gpsDemo (java)is an example of how to use the location/gps on the phone.

gpsDemo (kotlin) is an example of how to use the location/gps on the phone.

BiometricPromptDemo is an API 28 version to use fingerprints (and more later if the phones support more biometrics). It needs some work, but is a functional example. For the fingerprint demos, see legacy.

nfc/ These are NFC examples.

legacy/ are old examples that are no longer updated.

These are example code for University of Wyoming, Cosc 4730 Mobile Programming course and Cosc 4735 Advanced Mobile Programming course. All examples are for Android.