Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Google Map API V2 Blank Screen with zoom controls
    text
    copied!<p>My manifest</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.yousystem.loyalties" android:versionCode="1" android:versionName="1.0"&gt; &lt;uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17"/&gt; &lt;permission android:name="com.yousystem.loyalties.permission.MAPS_RECEIVE" android:protectionLevel="signature" /&gt; &lt;uses-feature android:glEsVersion="0x00020000" android:required="true" /&gt; &lt;uses-permission android:name="com.yousystem.loyalties.permission.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="com.google.android.providers.gsf.permission.READ_GSERVICES" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt; &lt;application android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:name=".LocalApplication"&gt; &lt;activity android:name=".LoginActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:noHistory="true"&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=".MasterActivity" android:clearTaskOnLaunch="true" android:screenOrientation="portrait"/&gt; &lt;activity android:name=".PromotionsActivity" android:clearTaskOnLaunch="true" android:screenOrientation="portrait"/&gt; &lt;activity android:name=".NewsAndPromotionsDetailsActivity" android:clearTaskOnLaunch="true" android:screenOrientation="portrait"/&gt; &lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="myKey" /&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>My Fragment</p> <pre><code>import com.google.android.gms.maps.SupportMapFragment; public class LocationsFragment extends SupportMapFragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); View view = super.onCreateView(inflater, container, savedInstanceState); // initMap(); return view; } } </code></pre> <p>Blank screen with zoom controls is visible, what is wrong ?</p> <p><strong>EDIT1:</strong> com.yousystem.loyalties E/Google Maps Android API: Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).</p> <p><strong>EDIT2:</strong> Fixed Edit1 error with <code>&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;</code> Now I have Failed to contact Google servers. Another attempt will be made when connectivity is established.</p>
 

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