Reputation: 1857
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
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