Husnain Ali
Husnain Ali

Reputation: 19

Need Current Location of User in Android , Not Last known location

I am developing an android application in which i want to get users current location when application start, But when i start my application it gives the last known location when it start first time, But i want the updated current location of the user as soon as possible on application start.

Please guide me about this. Thanks

Upvotes: 1

Views: 2786

Answers (2)

Husnain Ali
Husnain Ali

Reputation: 19

Is not there any way to get current location when application start 1st time OR application not proceed for any next activity until application get current location update, not last known location.

Upvotes: 0

Gaskoin
Gaskoin

Reputation: 2485

Use LocationServices. It containes all location strategies described here

Upvotes: 1

Related Questions