google-developer-training/android-advanced

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

Opened this issue · 0 comments

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