Skip to content
This repository has been archived by the owner on Dec 15, 2019. It is now read-only.

An android app that showcases raw data from various sensors in a smartphone

Notifications You must be signed in to change notification settings

hernanrazo/smartphone-sensors-app

Repository files navigation

Android Sensors Demo App

Description

This is a sample Android app that displays raws sensor values for various sensors available on most smartphones. Currently, this app suppports the accelerometer, ambient light sensor, GPS, magnetometer, pressure sensor, and proximity sensor.

Upon launch, the user is greeted with a menu displaying each sensor. If the user's phone does not support a sensor, the button will appear disabled.

The proximity sensor measures the distance of an object relative to the screen of a device. This measurement is in centimeters. The proximity sensor is typically used to check whether a user is placing their phone onto their ear during a call.

The accelerometer measures the accelation forces applied to a device. This is measured in m/s^2. This sensor returns three measurements, one for each axis (x, y, and z). This sensor is mostly used to detect in motion of the device for various application features and games.

The ambient light sensor is used to measure the illumination of the outside environment. This is measured in lx. This sensor is predominantly used to control screen brightness.

The GPS is used to determine a user's location. This sensor returns two values, the latitude and the longitude. The GPS is used for various location-specific features like driving directions. When using the GPS on this app, the user must have the locations permission enabled and then press the "GET COORDINATES" button to get their current GPS coordinates.

The magnetometer returns the ambient mangetic field of a device. The measurements are returned in three values for each axis (x, y, and z). Each value is returned in micro-Teslas. This app is used for various compass related compass related tasks.

The Pressure sensor measures the ambient air pressure in hPa or mBar. This sensor is not as common as the rest and therefore might not be available on certain devices. This sensor is part of the environment sensor group that are used to measure weather and atmospheric properties of a phone's environment.

Sources and Helpful Links

https://developer.android.com/guide/topics/sensors/sensors_overview
https://developer.android.com/guide/topics/sensors/sensors_environment

About

An android app that showcases raw data from various sensors in a smartphone

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages