How to use an API in a project in Android Studio? [closed]

-1

Does anyone have any tuto talking about this, or can you explain me by giving some example? I searched the net but everything was kind of clueless, so I came here to find out more. Is anyone able to respond please?

Thanks for your help ..

    
asked by anonymous 07.11.2016 / 20:11

1 answer

2

Google offers several APIs, for example:

If your application will work with maps, in your project (left side in android studio) go to Gradle Scripts and open the file build.gradle ("Modulo su app"). At the end of this file has a dependences clause, within this clause you adress the APIs you want to use, in our example would be

dependencies {
  ...
  compile 'com.google.android.gms:play-services-maps:9.4.0'
  ...
}

have other map APIs

com.google.android.gms: play-services-location - to work with GPS

com.google.maps.android:android-maps-utils - to convert geographic coordinates into address and vice versa

Take a look at: link

    
07.11.2016 / 20:32