File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes gps not getting user location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "gps not getting user location" Watch "gps not getting user location" New topic

gps not getting user location

amrut sabade
Ranch Hand

Joined: Aug 16, 2010
Posts: 90
Hii everybody i am tring to get the current userlocation(latitude and longitude ) bt onLocationChanged method is not getting called
but other method like public void onProviderDisabled(String provider) please help what can be the problem ?
i have class
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
You must have GPRS or wifi enabled for this.


and you can use getBestProvider(Criteria) method too.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Do you have the ACCESS_FINE_LOCATION permission set in your manifest?

JBoss In Action
I agree. Here's the link:
subject: gps not getting user location
It's not a secret anymore!