Following the training example project on developer.android.com