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

Advanced Android: [Lesson #Advanced Android 03.1: Getting sensor data][Step # 5-6][missprint] #29

Open
Arman-Kussainov opened this issue Dec 31, 2020 · 0 comments

Comments

@Arman-Kussainov
Copy link

Describe the problem
In the light of the previous code lines the code snippets
int sensorType = event.sensor.getType();
and
float currentValue = event.values[0];
should be clearly written as
int sensorType = sensorEvent.sensor.getType();
and
float currentValue = sensorEvent.values[0];
To allow comfortable copy-pasting without looking for the source of the error message :)

In which lesson and step of the codelab can this issue be found?
https://developer.android.com/codelabs/advanced-android-training-sensor-data#3
Advanced Android 03.1: Getting sensor data
steps 5 and 6

How to reproduce?
What are the exact steps to reproduce the problem?

Versions

  1. What version of Android Studio are you using?
    4.1.1
  2. What API level are you targeting?
    starting from 16th I guess…

Additional information
probably just an educational missprint :))

codelab: advanced-android

@Arman-Kussainov Arman-Kussainov changed the title Advanced Android: [Lesson #][Step #][description] Advanced Android: [Lesson # 03.1][Step # 5-6][missprint] Dec 31, 2020
@Arman-Kussainov Arman-Kussainov changed the title Advanced Android: [Lesson # 03.1][Step # 5-6][missprint] Advanced Android: [Lesson #Advanced Android 03.1: Getting sensor data][Step # 5-6][missprint] Dec 31, 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