Please update sample to work with current permission model this will fail to work with api > targetSdkVersion 22.