Data Viewer

DataViewer is a very useful tool to check save data to 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. Figure 9 shows its main screen and menus.

Figure 9: DataViewer‘s main screen and menu

Checking Saved Data

You can check saved data in Samsung Health by selecting one of data types in Figure 10.

Saved data are listed up with its saved time after allowing the selected data type’s permission. Each data contains detailed information for the data type’s properties and you can see it by selecting one of data.

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

Checking saved data with DataViewer is the exact way to test your app when the app writes measured data to Samsung Health. Because some inserted data to Samsung Health cannot be shown on Samsung Health with its UI policy. Make sure if the following information is saved well especially:

  • Measured data value and its unit.

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

  • Other interesting information.

Figure 10: Checking saved step data in DataViewer

Adding New Data

You can add new data easily with DataViewer by selecting the “ADD” upper right button on 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 with filling values of mandatory properties and 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 data type can be accessed after the data permission agreement. Whenever you select any data type on the main screen’s data list, the permission UI is popped up as the middle one of Figure 10 to allow only one data type’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.