io2015-codelabs icon indicating copy to clipboard operation
io2015-codelabs copied to clipboard

CameraFragment.java, startVoiceTimer(), isTimerSpecified() methods are not missing from guided lab example but are added several steps after they are referenced.

Open JohnMAustin78 opened this issue 9 years ago • 1 comments
trafficstars

For API 23,

The lab would have you paste into the onResume callback this: if (getActivity().isVoiceInteraction()) { if (isTimerSpecified()) { startVoiceTimer(); } else { startVoiceTrigger(); } }

A startVoiceTrigger() method is in the lab but a startVoiceTimer() and isTimerSpecified() is not in the lab.

JohnMAustin78 avatar Jul 20 '16 21:07 JohnMAustin78

I recognize that if you follow the steps in the lab from beginning to end, the code compiles, but I don't really understand why all of the steps to add logic to the CameraFragment class are separated by 3 lab steps. At step 9, Android Studio barked at me (red source code text) for the missing methods. I spent several minutes looking for errors in my code & then filed this bug. I ultimately found the code at the end of the lab. It would be better to make them adjacent steps along with code comments that indicated the missing methods would be added in subsequent steps.

JohnMAustin78 avatar Jul 20 '16 22:07 JohnMAustin78