Access google maps in android emulator

I am developing an Android application using data from Google Maps. I can access google maps in the emulator, but when I try the same in my application, Google maps do not open. What is the problem? reference

+3
source share
2 answers

First of all, I would try to make this example .

Make sure your manifest has:

<uses-library android:name="com.google.android.maps" />
<uses-permission android:name="android.permission.INTERNET" />

Also remember that your view should have something like this:

<com.google.android.maps.MapView
        android:id="@+id/mapview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        android:apiKey="Your Maps API Key"
    />

You can get your card key from here .

+3
source

It looks like you are not using the Google API in the emulator:

http://code.google.com/android/add-ons/google-apis/

Android (AVD) API google: alt text

, "test_avd" API Google. , "test_maps_avd" API Google.

+5

Source: https://habr.com/ru/post/1748994/


All Articles