File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

gps not getting user location

 
amrut sabade
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must have GPRS or wifi enabled for this.

Try using NETWORK_PROVIDER.

and you can use getBestProvider(Criteria) method too.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the ACCESS_FINE_LOCATION permission set in your manifest?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic