一切正常。幾天前,我的所有應用程序都使用Google地圖服務發生問題。據我所知,代碼沒有問題。Android開發谷歌地圖加載但未顯示位置
當我打開一個地圖的活動,如:
String uriBegin = "geo:" + "47.531605" + "," + "21.627312";
String query = "47.531605" + "," + "21.627312" + "(" + DeviceId
+ ")";
String encodedQuery = Uri.encode(query);
String uriString = uriBegin + "?q=" + encodedQuery + "&z=16";
Uri uri = Uri.parse(uriString);
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
intent.putExtra("DeviceId", DeviceId);
startActivity(intent);
它加載谷歌地圖,一切,定位我的手機的位置,去的位置:47.531605,21.627312但它並沒有標註它,並說:無匹配。
我希望有人得到了一些答案:) 問候,
你在LogCat中獲得了什麼? – joao2fast4u
我在手機上運行它,所以我沒有登錄貓,無法在我的adb中啓動android模擬器。但是會對它起作用 – user3834328
如果將設備插入PC並在其中運行代碼,該怎麼辦? – joao2fast4u