Android synchronizing database with wearable - DataMapItems are overwritten
问题 I try to synchronize data from a SQLite database on the handheld to a wearable. Therefore I use the Data API with the following code on the handheld: cursor.moveToFirst(); while (!cursor.isAfterLast()) { final PutDataMapRequest putRequest = PutDataMapRequest.create("/SAMPLE"); putRequest.setUrgent(); final DataMap map = putRequest.getDataMap(); int i = 0; for (String columnName: cursor.getColumnNames()) { map.putString(columnName,cursor.getString(i)); i++; } Wearable.DataApi.putDataItem