Getting user's location Android -


i'm looking best way user's location. i've found there 2 main ways :

  • using com.google.android.gms.location.locationlistener google play services
  • using android.location.locationlistener android apis

my question simple: 1 best?

at moment, i'm using first 1 i'm facing issues: when using cell network, location never retrieved.

thanks help.

my suggestion first one. com.google.android.gms.location.locationlistener abstracts fiding location code. sample code @ here please. works fine me cell network or wifi.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -