Update sample with changes from Android SDK 21.
In changes from L to 21, StateListener and CaptureListener renamed to StateCallback and CaptureCallback. See https://developer.android.com/sdk/api_diff/preview-21/changes/pkg_android.hardware.camera2.html