Search code examples
androidgoogle-mapsandroid-layoutandroid-studioandroid-actionbar

Adding an ActionBar to the Default Google Maps Activity Template in Android Studio


I've been able to add all of my markers to my map, using locations provided by my API, but I've been unable to add an ActionBar.

As mentioned, I am using the Android Studio "Google Maps Activity" template. How can I go about adding an ActionBar to this template?

Please let me know if there's any code that you need from me.


Solution

  • Extending AppCompatActivity instead of FragmentActivity helped me.