i have this xml which contains google maps v2:
If you are running your code for API level <11, use FragmentActivity instead of extending Activity and in XML, use "com.google.android.gms.maps.SupportMapFragment"
FragmentActivity
Activity
"com.google.android.gms.maps.SupportMapFragment"