![]() IMPORTANT: Never add API keys directly toĪpplication code. Val placesClient = Places.createClient(this) ![]() Places.initialize(applicationContext, apiKey) PlacesClient placesClient = Places.createClient(this) Places.initialize(getApplicationContext(), apiKey) ![]() (note that you pass the API key when calling Initialize the Places SDK for Android within an activity or fragment as shown in the following example Specify only one of the API key metadata names. Name allows authentication to the Android Maps API v2 only. For backwards compatibility, the API also Google Maps-based APIs on the Android platform, including the A key with this name can be used to authenticate to multiple
0 Comments
Leave a Reply. |