0

Possible Duplicate:
Using ActionBarSherlock With the New SupportMapFragment

sorry for the noob question, but I would like to know if there is a way to use the actionBar sherlok with google maps?
The thing here is that action bar needs to extends SherlockActivity but maps needs to extend MapActivity. are there other options to have an actionBar over a map?

any information would be greatly appreciated

Community
  • 1
  • 1
Pedro Teran
  • 1,200
  • 3
  • 17
  • 43
  • 1
    This is a possible duplication of stackoverflow.com/questions/13721929/using-actionbarsherlock-with-the-new-supportmapfragment – Graham Smith Dec 10 '12 at 15:55

2 Answers2

2

you could use fragments. There you have a MapFragment to use: http://developer.android.com/reference/com/google/android/gms/maps/MapFragment.html

or:

https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/SupportMapFragment

Sprigg
  • 3,340
  • 1
  • 18
  • 26
  • do you know if MapFragment will be compatible with older version like 2.1 using android-support-v4.jar? there is no information about this on the documentation – Pedro Teran Dec 10 '12 at 15:58
  • good point. I don't think so :( – Sprigg Dec 10 '12 at 16:05
  • How about `SupportMapFragment`? https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/SupportMapFragment – Sprigg Dec 10 '12 at 16:11
  • I took a look at the SupportMapFragment and it's seems to be compatible backward. so I'm trying with it. thanks for pointing me – Pedro Teran Dec 10 '12 at 21:10
1

You can do the map into a webView

https://developers.google.com/maps/articles/android_v3

user1256477
  • 10,763
  • 7
  • 38
  • 62