Convert Android App that uses maps API V1 to Maps Android API V2

后端 未结 1 1924
一向
一向 2020-12-16 07:48

I have an android app that uses the old Maps API, it\'s now deprecated!

What steps I should take to make my app works with the new API.

I\'m using also Dista

相关标签:
1条回答
  • 2020-12-16 08:10

    You can take a look at this blog post I wrote on how to create a Map application using:

    Google Map API V2 guide

    Basically the changes you would have to make are

    1. Replace the MapView object with a MapFragment or SupportMapFragment object (depending on the target SDK of your application)

    2. In additin you will have to repalce the MapActivity with a normal Activity (if you use the MapFragment object) or the FragmentActivity (if you use the SupportMapFragment object).

    3. You will have to change the permissions in the manifest file to new ones, that are described in the guide.

    0 讨论(0)
提交回复
热议问题