Google Map V2 Android Map Referencing
Solution 1:
You doing the referencing the wrong way, please take a look at this short 8 steps guide that i wrote to get a Google map in your application, please follow the steps precisely and you will have a Google map at the end.
I was creating a Google map application when i was writing this guide and you can see the end result at it end.
Solution 2:
Acrivity
have to extends FragmentActivity
for proper fragment inflating. Please, check if MainActivity
extends FragmentActivity
. Remember that if you write app for older versions of Android you have to use support library v4 and SupportMapFragment
instead of MapFragment
.
Btw. referencing android library in eclipse doesn't change AndroidManifest.xml
, only project.properties
. You have to add manually lines like this
<activityandroid:name="com.example.android.tictactoe.library.GameActivity" />
only if you use some Activity
from library. In case of google maps v2 you only need MapFragment
so you don't have to do that.
Post a Comment for "Google Map V2 Android Map Referencing"