alfo888_ibg
alfo888_ibg

Reputation: 1857

How to download an image on Android wear?

I have an ArrayList of Serialization objects on my handheld.

I found a solution to send it to my wearable device.

Can I send custom objects to Android Wear?

In my Object I have the URL of an image and in my handheld I am using Picasso to download the image from the URL (es in a ImageView).

Can I download the image in the wearable? (I think no).

Should I download all the images of the ArrayList in the handheld and send it putting them as assets in a DataMap?

Upvotes: 0

Views: 2323

Answers (1)

Murphy
Murphy

Reputation: 4876

You can't download images directly from the Wear as there's no direct internet access.

However you're on the right path by downloading images on mobile (e.g. using Picasso), then transferring them to the Wear via an Asset.

There's a tutorial with all the code required on how to send an image using an Asset in the Android training section: https://developer.android.com/training/wearables/data-layer/assets.html

Upvotes: 3

Related Questions