user3847939
user3847939

Reputation: 101

Is it possible to show Google map view on Android Wear?

Is it possible to show Google map view on Android Wear? I want to show a particular location to user on map.

Upvotes: 3

Views: 1234

Answers (2)

ldavin
ldavin

Reputation: 423

You may manage to embed a MapView in your activity, but it won't work as Android Wear does not have direct access to the network.

However, what you can do is using the Static Maps API.

  1. Your Wear app should send a Message to your phone application
  2. Your phone application downloads a bitmap of the map you want thanks to the static maps api
  3. Your phone app sends back the image to the wear app
  4. You show the bitmap in the wear application with an ImageView

The maps static API is quite powerful, and will allow you to do almost anything, including adding markers at the positions you want.

I have implemented such a system in an application, so I can guarantee you it'll work

Upvotes: 3

Andre Aus B
Andre Aus B

Reputation: 511

I dont think that this is possible. Your host app on the mobile could generate a map picture and send it to the watch. I think the same way the navigation preview on the watch is working.

Upvotes: 1

Related Questions