Search code examples
androidgoogle-mapswear-osgoogle-maps-api-2android-wear-data-api

map showing gray on an Android Wear Emulator


i am using Android Studio, i created a wear AVD with API 22, Activated debugging on the device an obtained the google map API key, i used the example provided by google for a simple Wear application using Google Maps API :

https://developers.google.com/maps/documentation/android-api/wear

project's files are provided here :

https://github.com/googlemaps/android-samples/tree/master/AndroidWearMap

the application start but show a gray map without changes.

i think it is a problem of connectivity since the wear AVD is not connected to the internet like a Handled AVD so it can't download the map files.

i didn't try to connect the wear AVD with my Android Phone because the Android version it is using is not compatible with the Android Wear application required to connect a wear to Handled devices and and it doesn"t support higher versions.

is there a solution to let the wear AVD use my computer internet, or another way to use Google Maps on wear AVD ?

can i show the map correctly if i connect my wear AVD to a Handled Device ?

thanks for your suggestions.


Solution

  • i think emulator can't communicate automatically with hand device, i tried to implement the Data-layer API to transfer programmatically the map image (using static Maps) and it works fine.