Updating Samples to use the updated Snapshots API.

Also minor fixes for Android Studio 1.0