This is just the tutorial that I followed from www.developer.android.com/training