Note that there are some explanatory texts on larger screens.

plurals
  1. POMapView Android 4.1.2
    primarykey
    data
    text
    <p>I am new to Android and i'm trying to create a MapView (Android 4.1.2) but when i launch the emulator, it shows me only the grey grid. I've got many errors:</p> <pre><code>11-15 14:04:42.916: E/MapActivity(691): Couldn't get connection factory client </code></pre> <p>and lot of these errors:</p> <pre><code> 11-15 13:57:04.186: W/System.err(691): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702) </code></pre> <p>When i created the key, my Fingerprint was in SHA1, not in MD5. I translated SHA1 to MD5 and i used it. The fact that the fingerprint was in SHA1, could be harmful?</p> <p>What can i do?</p> <p>Here's what i wrote.</p> <p>AndroidManifest</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="it.alcos" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_GPS" /&gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" &gt; &lt;uses-library android:name="com.google.android.maps" /&gt; &lt;activity android:name="it.alcos.MapsActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; </code></pre> <p></p> <p>layout where i created the mapView. I did insered the map-key, i'm hiding it:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/LinearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MapsActivity" &gt; &lt;com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="********myKey*********" android:clickable="true" android:enabled="true" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Class.java. I added Zoom on the map, and nothing more.</p> <pre><code>public class MapsActivity extends MapActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_maps); MapView mapview = (MapView) findViewById(R.id.map_view); mapview.setBuiltInZoomControls(true); } protected boolean isRouteDisplayed() { return false; } </code></pre> <p>}</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload