Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Maps API v2 shows blank map
    primarykey
    data
    text
    <p>I have set up an Android Application in order to view some things on a Google Map. I used the Google Maps API v2 and followed all the setup which can be found <a href="https://developers.google.com/maps/documentation/android/start#the_google_maps_api_key" rel="nofollow noreferrer">here</a>. I even registered the application using a key that I applied for on Google's website.<br> I have been able to get the Activity running but every time I open it I am greeted with a blank screen.</p> <p><img src="https://i.stack.imgur.com/VIEr2.png" alt="The Blank Screen I am shown"></p> <p><strong>This is my Manifest File</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.stullich.tim.woistmeinphoto" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" /&gt; &lt;permission android:name="com.stullich.tim.woistmeinphoto.permission.MAPS_RECEIVE" android:protectionLevel="signature" /&gt; &lt;uses-permission android:name="com.stullich.tim.woistmeinphoto.MAPS_RECEIVE" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&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="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt; &lt;uses-feature android:glEsVersion="0x00020000" android:required="true" /&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:required="true" android:name="android.test.runner"&gt; &lt;/uses-library&gt; &lt;activity android:name="com.stullich.tim.woistmeinphoto.PhotoGalleryActivity" android:label="@string/app_name" android:screenOrientation="landscape" &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;activity android:name=".FullImageViewActivity" android:screenOrientation="landscape" &gt; &lt;/activity&gt; &lt;activity android:name=".MapViewActivity" android:screenOrientation="landscape" &gt; &lt;/activity&gt; &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="Excluded this for now" /&gt; &lt;/application&gt; </code></pre> <p></p> <p><strong>And This Is My Activity Where I Load The Map</strong></p> <pre><code>package com.stullich.tim.woistmeinphoto; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.google.android.gms.maps.SupportMapFragment; public class MapViewActivity extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map_view_activity); SupportMapFragment fragment = new SupportMapFragment(); getSupportFragmentManager().beginTransaction() .add(android.R.id.content, fragment).commit(); } } </code></pre> <p>I have heard that not having the correct API Key used can lead to this problem, but I have triple-checked the key now and I don't think that is the issue.</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.
 

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