Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Advanced Android: [Lesson 3][Step 1.3][Sensor based orientation values never updated on some Incompatible Android Device] #23

Open
sofien4387 opened this issue Oct 9, 2020 · 0 comments

Comments

@sofien4387
Copy link

Describe the problem
Some Device does'nt have a Sensor Magnetic like Example Samsung Tab 5.

**Lesson and Step of the codelab can this issue be found :
TiltSpot Project Lesson 3, Step 1.3

How to reproduce?
Install the Demo Application on Device Tablet Samsung Tab 5 which does'nt have a Sensor Magnetic , so the accelormeter values never updated

Versions

  • version of Android Studio: 3.5.2
  • API level target : Android 21

Additional information
To fix this issue, just add else branch when SensorManager not found (NULL) and display incompatibilty sensor device message.

codelab: advanced-android
Advanced Android 03.2: Sensor-based orientation

@sofien4387 sofien4387 changed the title Advanced Android: [Lesson #][Step #][description] Advanced Android: [Lesson 3][Step 1.3][Sensor based orientation values never updated on some Incompatible Android Device] Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant