I'm trying to work with Google Maps API v2, and I've read a lot of questions and answers and nothing so far. It works, never crashes, but it shows only a white display with Google maps logo in the bottom left corner and in the bottom right corner the 2 buttons for zoom out/in, and that's all. Why?
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.descoper.rom"
android:versionCode="1"
android:versionName="1.0" >
<permission
android:name="com.descoper.rom.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.descoper.rom.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="permission_name"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/CustomActionBarTheme"
>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.descoper.rom.MainActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:installLocation="preferExternal" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.descoper.rom.Galerie"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.descoper.rom.GalerieAdapter"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.descoper.rom.Item"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.descoper.rom.Romania"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.descoper.rom.Maps"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<!-- Goolge Maps API Key -->
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="Here is my generated API KEY " />
</application>
</manifest>
maps.xml:
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.google.android.gms.maps.MapFragment"/>
Maps.java:
package com.descoper.rom;
import android.app.Activity;
import android.os.Bundle;
public class Maps extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.maps);
}
}
logcat - possible error:
05-12 11:44:06.210: E/JavaBinder(729): *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
05-12 11:45:01.070: E/libEGL(52): called unimplemented OpenGL ES API
05-12 11:45:01.070: E/libEGL(52): called unimplemented OpenGL ES API
05-12 11:45:01.080: E/libEGL(52): called unimplemented OpenGL ES API
05-12 11:45:01.080: E/libEGL(52): called unimplemented OpenGL ES API
05-12 11:45:01.080: E/SurfaceFlinger(52): glCheckFramebufferStatusOES error -507375258
05-12 11:45:01.080: E/SurfaceFlinger(52): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
05-12 11:45:01.080: E/libEGL(52): called unimplemented OpenGL ES API
05-12 11:45:01.080: E/libEGL(52): called unimplemented OpenGL ES API