2016-06-09 6 views
-6

Ich versuche in der Nähe Orte zu suchen, aber es gibt nichts. Ich benutze Browser-Taste für API Anruf und für Manifest Android API SchlüsselSo suchen Sie in der Nähe Orte mit Google API?

plzzz mir helfen.

06-09 16:55:40.626 22228-22228/com.example.training.googlemappractice E/Zygote: MountEmulatedStorage() 
06-09 16:55:40.626 22228-22228/com.example.training.googlemappractice E/Zygote: v2 
06-09 16:55:40.641 22228-22228/com.example.training.googlemappractice E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL 
06-09 16:56:11.186 22228-22228/com.example.training.googlemappractice E/MotionRecognitionManager: mSContextService = null 
06-09 16:56:11.186 22228-22228/com.example.training.googlemappractice E/MotionRecognitionManager: motionService = [email protected]8a3456f 
06-09 16:56:11.561 22228-22228/com.example.training.googlemappractice E/MotionRecognitionManager: mSContextService = null 
06-09 16:56:11.561 22228-22228/com.example.training.googlemappractice E/MotionRecognitionManager: motionService = [email protected]2391e96b 
06-09 16:56:11.686 22228-22228/com.example.training.googlemappractice E/location: null 
06-09 16:56:13.596 22228-23275/com.example.training.googlemappractice E/DynamiteModule: Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.android.gms.googlecertificates.ModuleDescriptor" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.training.googlemappractice-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]] 
06-09 16:56:22.066 22228-22228/com.example.training.googlemappractice E/ViewRootImpl: sendUserActionEvent() mView == null 
06-09 16:56:22.656 22228-22228/com.example.training.googlemappractice E/url-------//: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=0.0,0.0&radius=5000&types=mosque&sensor=true&key=MY_KEY 
06-09 16:56:24.031 22228-23481/com.example.training.googlemappractice E/dataStreem------: buffer([email protected]).inputStream() 
06-09 16:56:24.031 22228-23481/com.example.training.googlemappractice E/data1----: { "html_attributions" : [], "results" : [], "status" : "ZERO_RESULTS"} 
06-09 16:56:24.031 22228-23481/com.example.training.googlemappractice E/data------: { "html_attributions" : [], "results" : [], "status" : "ZERO_RESULTS"} 
06-09 16:56:24.051 22228-22228/com.example.training.googlemappractice E/list------------: [] 
+0

bitte fügen Sie logcat, haben Sie überprüft, gibt es eine ordnungsgemäße Internetverbindung auf Ihrem anderen Telefon? –

+0

ja funktioniert es richtig auf meinem Handy, aber auf anderen nicht –

+0

ist google map ist aktiv ?? Ich meine, Sie können eine geladene Karte sehen? –

Antwort

0

In Logcat Ihre Orte Link ist -

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=0.0,0.0&radius=5000&types=mosque&sensor=true&key=AIzaSyAEZ252ulUWkOIKtJw9O7JvrYz3RLp0N_c 

Hinweis der Lageparameter - Ihre Breiten- und Längenwerte sind 0,0 und google Antwort ist auch NULL. Damit können Sie keine Orte auf der Karte sehen. Versuchen Sie, die Breitengrade Ihres Breitengrads & zu debuggen und prüfen Sie, ob Ihr Standortsensor (GPS) an/aus ist. Hoffe es wird helfen!

+0

Aktivieren Sie Ihr GPS! Dann findet die App automatisch Ihren aktuellen Standort. und innerhalb von 5 km Radius wird Ihre Platzkategorie angezeigt. –

+0

immer noch nicht funktioniert –

+0

Ich bekomme lat lange von der aktuellen Position, die null zurückgibt, ich habe es manuell in api seine Arbeit jetzt. –

Verwandte Themen