This video shows you how to request location updates and to get updates while the app is in the background. Please check the following relevant videos:
Requesting Permission at Runtime in Android • Requesting Permission at Runtime in A...
Requesting Multiple Permissions at Runtime in Android • Requesting Multiple Permissions at Ru...
Setup Location Services and Get Current Location • Android: Setup Location Services and ...