Data Viewer

DataViewer is a very useful tool to check saved data in Samsung Health. You can find it in the downloaded SDK's /Data/Tools folder.

Prerequisites
  • Activate the Samsung Health’s developer mode.

  • Install DataViewer and open it.

DataViewer provides the SDK’s supported data type list and some useful menus. The following figure shows its main screen and corresponding menus.

Figure: DataViewer‘s main screen and menu

Checking Saved Data

You can check the saved data in Samsung Health by selecting one of the data types in the figure below.

Saved data are listed up with its respective timestamp after allowing the selected data type’s permission. By selecting each data type, you can view detailed information about its data properties.

Data’s detailed information describes its measured time and value including common information such as its creation time, the source app’s package name, and source device.

Checking the saved data with DataViewer is the exact way to test your app when it writes measured data to Samsung Health. The inserted data cannot be shown on Samsung Health caused by its UI policy or wrong setting of "start_time" and "time_offset". Make sure to set the following information well especially:

  • Measured data value and its unit

  • "start_time" that indicates the measurement time and "time_offset"

Figure: Checking saved step data in DataViewer

Adding New Data

You can add new data easily with DataViewer by selecting the “ADD” button on the upper right button of the saved data list.

It is very helpful to test your app when it reads Samsung Health’s new data. Check your app after creating a new data with DataViewer by filling values of mandatory properties and then saving it. Data’s mandatory properties are marked with 'not null'.

Connection to Samsung Health

DataViewer handles Samsung Health’s all data types and each of these can be accessed after the data permission agreement. Whenever you select a data type on the main screen’s data list, the permission UI is popped up as the middle one of the figure above to allow only the selected one’s permission.

If you want to allow access for several data types at once, use “Connect to Samsung Health” of DataViewer. It shows the permission UI pop-up that contains permission of all data types.