New for Android, etc.
Therefore, I was recommended this demo: http://dj-android.blogspot.in/2013/02/android-google-map-v2-part-1.html
I followed him, but something went wrong.
...
- In the workspace I have my own project:
- In this project: In "Libs" I added "android-support-v4.jar"
- In this project: in Android Depencides I have "android-support-v4.jar"
- Inside this project: In link libraries I have "google-play-services.jar"
- Inside this project: In link libraries I have "android-support-v4.jar"
...
- In the workspace, I have google-play-services_lib as a project:
- Inside this project: In "Libs" I have "google-play-services.jar"
- Inside this project: In "Libs" I have "google-play-services.jar.properties"
- Inside this project: in "Android Dependencies" I have "google-play-services.jar"
...
When I run the project in SGII v4.1.2, I get a black screen followed by crasj, followed by an error:
03-09 00:28:49.957: E/AndroidRuntime(20309): FATAL EXCEPTION: main 03-09 00:28:49.957: E/AndroidRuntime(20309): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mapstest/com.example.mapstest.MainActivity}: android.view.InflateException: Binary XML file line
activity_main.xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <fragment android:id="@+id/fragment1" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.SupportMapFragment" /> </RelativeLayout>
MainActivity.Java
package com.example.mapstest; import android.app.Activity; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.app.Activity; import android.view.Menu; public class MainActivity extends FragmentActivity { @Override protected void onCreate(Bundle arg0) {
NOTE 1:
Do you guys believe this could be an API key issue? I use this as an API key:
HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH:HH;com.exampledomain.exampleproject
- Pay attention to the ending. It's right?
- I had to edit the output from keytool, so Iām not 100% sure that the API key is good. See: Android v2 Maps API Key
NOTE 2:
Some screenshots of my current configuration:


If you think that the cause of my problems is that Google Play services are not installed correctly, I created a separate SO for this: It is not possible to install google-play-services in Eclipse correctly (trying to get the cards to work)
source share