Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LocationClient cannot be resolved to a type

so yeah basically that's my issue, i have been following this link http://developer.android.com/training/location/retrieve-current.html

and it seems that eclipse won't identify the LocationClient class and it doesn't even ask me to import it, of course i implemented the GooglePlayServicesClient.ConnectionCallbacks and GooglePlayServicesClient.OnConnectionFailedListener and my activity extends FragmentActivity

Am i missing something ??

Also i found out the the overridden onConnected() method has no parameters, i've seen examples from all over and everywhere i see it says onConnected(Bundle bundle) but mine just refuses to have parameters. Any help is appreciated guys, thnQ very much

like image 281
Mazen Elian Avatar asked May 28 '13 23:05

Mazen Elian


2 Answers

Sounds like you may not have added the Google Play Services SDK to your project. See the documentation at http://developer.android.com/google/play-services/setup.html

like image 151
GreyBeardedGeek Avatar answered Oct 16 '22 10:10

GreyBeardedGeek


LocationClient is a deprecated class. However, it is still in the Android documentation to get the current location.

Android LocationClient class is deprecated but used in documentation

like image 36
Ozan Bozkurt Avatar answered Oct 16 '22 09:10

Ozan Bozkurt