2013-11-14 3 views
0

이제 Google 위치 찾기 API가 종료되었으므로 Google+ 위치 데이터를 가져올 수 있습니까? 내 휴대 전화의 위치를 ​​기반으로 스크립팅을하고 싶었지만 API 설명서에이 방법이 표시되지 않습니다. 아마도 나는 뭔가를 놓친거야?Google+ 위치

감사합니다, 자크

답변

0

당신은 안드로이드에 대한 google-play-services SDK와 함께 휴대 전화의 위치를 ​​얻을 수 있습니다. Eclipse google-play-services_lib 프로젝트를 라이브러리 프로젝트로 설정하고 프로젝트를 가져 와서 해당 위치 프로젝트에 라이브러리로 가져와야합니다.

http://developer.android.com/google/play-services/setup.html

불행하게도 이클립스에서 작업 google-play-services 점점 똑바로 전달되지 않고 오류 메시지가 매우 유익하지 않습니다. 당신은 문제가 라이브러리를 설정하는 경우이 읽기 :

Importing google-play-service library showing a red X next to this reference android

는 이클립스에서 작업, 당신은 당신의 GPS를 얻기 위해 구글 플레이-서비스를 사용할 수 있습니다 일단은 좌표

http://developer.android.com/guide/topics/location/strategies.html http://developer.android.com/training/location/index.html http://developer.android.com/reference/com/google/android/gms/location/package-summary.html

저는 이것을 시도하지 않았으며 몇 살입니다. 다음과 같이 Google Play 서비스를 설정하지 않아도되므로 Google Play 서비스를 설정하지 않아도 될 수 있습니다.

http://webdesignergeeks.com/mobile/android/geting-current-location-in-android-application-using-gps/