Flash Development for Android Cookbook
上QQ阅读APP看书,第一时间看更新

Chapter 3. Movement through Space: Accelerometer and Geolocation Sensors

This chapter will cover the following recipes:

  • Detecting whether or not an Android device supports the accelerometer
  • Detecting Android device movement in 3D space
  • Adjusting the accelerometer sensor update interval
  • Updating display object position through accelerometer sensor
  • Switching between portrait and landscape based upon device tilt
  • Detecting whether or not a device supports a geolocation sensor
  • Detecting whether the geolocation sensor has been disabled by the user
  • Retrieving device geolocation sensor data
  • Adjusting the geolocation sensor update interval
  • Retrieving map data through geolocation coordinates