Solution to Week 3 PermissionLab Coursera Android Programming