We will use GoogleApiClient to current location ,you can read about GoogleApiClient from here.
You will get complete code here.. (for Activity)
Check the below example for a Fragment. Extend your Fragment with this class(below) and its done..!
You will get complete code here.. (for Activity)
Check the below example for a Fragment. Extend your Fragment with this class(below) and its done..!