Skip to main content

Sensors and Location

  • Chapter
  • First Online:
Android Quick APIs Reference
  • 2062 Accesses

Abstract

The Android platform provides built-in sensors for measuring location, motion, orientation, and the characteristics of the surrounding environment. These sensors enable the development of location and environment-aware applications on the Android platform. This chapter explores the various sensors and location devices supported by the Android platform and the Android framework application programming interfaces (APIs) provided in order to interact with these sensors and location devices.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 37.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    http://developer.android.com/reference/android/hardware/SensorManager.html .

  2. 2.

    http://developer.android.com/reference/android/hardware/Sensor.html .

  3. 3.

    http://developer.android.com/reference/android/hardware/SensorManager.html#getDefaultSensor(int) .

  4. 4.

    http://developer.android.com/reference/android/hardware/SensorManager.html#getSensorList(int) .

  5. 5.

    http://developer.android.com/reference/android/hardware/SensorEventListener.html .

  6. 6.

    http://developer.android.com/reference/android/hardware/SensorManager.html#registerListener(android.hardware.SensorEventListener,android.hardware.Sensor, int) .

  7. 7.

    http://developer.android.com/reference/android/hardware/TriggerEventListener.html .

  8. 8.

    http://developer.android.com/reference/android/hardware/SensorManager.html#requestTriggerSensor(android.hardware.TriggerEventListener,android.hardware.Sensor) .

  9. 9.

    http://developer.android.com/reference/android/hardware/SensorEvent.html .

  10. 10.

    http://developer.android.com/reference/android/location/LocationManager.html .

  11. 11.

    http://developer.android.com/reference/android/location/LocationManager.html#isProviderEnabled(java.lang.String) .

  12. 12.

    http://developer.android.com/reference/android/location/LocationListener.html .

  13. 13.

    http://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener) .

  14. 14.

    http://developer.android.com/reference/android/location/LocationManager.html#requestSingleUpdate(java.lang.String, android.location.LocationListener, android.os.Looper) .

  15. 15.

    http://developer.android.com/reference/android/location/LocationManager.html#addProximityAlert(double, double, float, long, android.app.PendingIntent) .

  16. 16.

    http://developer.android.com/reference/android/location/LocationManager.html#KEY_PROXIMITY_ENTERING .

  17. 17.

    http://developer.android.com/reference/android/location/LocationManager.html#getLastKnownLocation(java.lang.String) .

  18. 18.

    http://developer.android.com/reference/android/location/Location.html .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Onur Cinar

About this chapter

Cite this chapter

Cinar, O. (2015). Sensors and Location. In: Android Quick APIs Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0523-5_8

Download citation

Publish with us

Policies and ethics