Search code examples
androidgoogle-play-serviceswear-osandroid-wear-data-api

Android: is DataMap of Wearable.DataApi a persistent storage?


I don't get if I could use it as a cloud storage between handheld and wearables or if it's just temporary.

This is the reference


Solution

  • When you put a DataItem (which can hold a serialized DataMap) into the DataApi it is persistent until some node deletes. It is kept in a database and shared between all devices.