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

Advanced Android: [Advanced Android 03.1: Getting sensor data][4.5] #13

Open
tejashbutani opened this issue Mar 31, 2020 · 0 comments
Open

Comments

@tejashbutani
Copy link

The issue I found in codelab on the mentioned topic is at this line
"int sensorType = event.sensor.getType();" here "event" keyword get's out of scope.

I founded these issue in Lesson 03.1, Step 4.5

How to reproduce?
Do same as given in codelab and would reproduce the error.

Versions
Version 29
API 29

Solution to the problem:
instead of word "Event" it can changed to "sensorEvent" as in method will resolve error.

codelab: advanced-android

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