android - google map view version 2 in activity group -


hello have tab based application containing activity groups . in 1 activitygroup have sub activity , in have display map , plot multiple location getting response server , google map version 1 no more supported have use oogle map version 2 when ever use xml given below xml inflate infalte fragments

java.lang.runtimeexception: unable start activity componentinfo{com.teks.googlemaps/com.teks.googlemaps.mainactivity}: android.view.inflateexception: binary xml file line #13: error inflating class fragment

                        <textview                             android:layout_width="wrap_content"                             android:layout_height="wrap_content"                             android:layout_centerhorizontal="true"                             android:layout_centervertical="true" />                          <fragment                             android:id="@+id/map"                             android:layout_width="match_parent"                             android:layout_height="match_parent"                              class="com.google.android.gms.maps.supportmapfragment"                             />                      </relativelayout> 

to add more specification have added google play services . made api key , target device in android 2.2

plz help

you need use fragmentactivity supportmapfragment work.

btw. activitygroup deprecated more 2 years now.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -