Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Update Ant Plugin database

Rank

Total Posts: 2

Joined 2019-12-16

PM

Hello everyone,

I'm trying to modify the information that is stored in: AntPluginDeviceDbProvider in ant/ant+ plugin.
For example, I want to change the name of my ANT device. As you know, by default there is no name but only a deviceIdD. Well, there is a method inside the DeviceDbDeviceInfo class called: writeToParcel(). I guess that this method is the one that lets you write to the DB. However, I'm not sure how to do the DB update. I'm not sure how and which classes I have to initialize in order to update the device name for example. And I cannot find any full example either. I checked the ANT API documentation, but there is only a description of the classes and methods.
Could you give me some idea or examples how to do that?

Thanks in advance.