I've created an application which creates a weight data source. Unfortunately, I had a typo in my application such that the field name was incorrectly typed as "kg" instead of "weight":
{
"dataStreamId": "raw:com.google.weight:myappwhatever",
"name": "Weight Feed",
"type": "raw",
"dataType": {
"name": "com.google.weight",
"field": [
{
"name": "kg",
"format": "floatPoint"
}
]
}
While the REST API has an update method, it does not support changing the fields, and unfortunately the REST API does not have a delete method.
The impact of this problem is that on the Android the logs indicate:
02-24 20:50:48.527 E/AndroidRuntime(8809): FATAL EXCEPTION: SyncAdapterThread-1
02-24 20:50:48.527 E/AndroidRuntime(8809): Process: com.google.process.location, PID: 8809
02-24 20:50:48.527 E/AndroidRuntime(8809): com.google.android.gms.fitness.l.ab: Conflicting data types! New: DataType{com.google.weight[kg(f)]}, existing: DataType{com.google.weight[weight(f)]}
02-24 20:50:48.527 E/AndroidRuntime(8809): at com.google.android.gms.fitness.l.af.b(SourceFile:180)
02-24 20:50:48.527 E/AndroidRuntime(8809): at com.google.android.gms.fitness.l.af.d(SourceFile:594)
02-24 20:50:48.527 E/AndroidRuntime(8809): at com.google.android.gms.fitness.l.af.d(SourceFile:552)
02-24 20:50:48.527 E/AndroidRuntime(8809): at com.google.android.gms.fitness.l.af.b(SourceFile:2740)
02-24 20:50:48.527 E/AndroidRuntime(8809): at com.google.android.gms.fitness.sync.b.a(SourceFile:244)
02-24 20:50:48.527 E/AndroidRuntime(8809): at com.google.android.gms.fitness.sync.c.onPerformSync(SourceFile:113)
02-24 20:50:48.527 E/AndroidRuntime(8809): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
Is there another way to update the field or to delete the data source?