Configuration for Data Source
Data Source owns two kinds of configuration files: external and internal, the external file datasourcecenter.json mainly defines what datasource will be active with what kind of collect levels, the internal configuration file corresponds to each datasource supported, with a set of concrete parameters that define what and how data will be retrieved, which are not advised by users.
Configuration
On android Data Source will try to create and initialize all datasources which are active using java reflection by the specified class name in the external configuration file in datasourcecenter.json which is located in the root assets directory on Android, all the internal configuration files are located in sub-folders
As an example of external configuration, com.telenav.sdk.datasource.impl.AndroidDataSource
stands for explicit java class derived from DataSource
to be loaded,
the package name is used to separate between different sensor grouping/packaging, and for each package we have three collect levels: low, medium and high, high level means more sensors in the package and events are collected in higher frequency.
1 2 3 4 5 6 7 8 9 10 11 12 |
|