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 Distance Matrix API and Google Directions API.
my code will work with it ?!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With