5

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

4

2 回答 2

5

听起来您可能没有将 Google Play Services SDK 添加到您的项目中。请参阅http://developer.android.com/google/play-services/setup.html上的文档

于 2013-05-29T00:11:01.747 回答
4

LocationClient 是一个已弃用的类。但是,它仍然是在 Android 文档中获取当前位置。

Android LocationClient 类已弃用,但在文档中使用

于 2014-12-10T15:00:11.807 回答