You are here

Hi, I want to develop better altimeter app for Gear S3 (zoomable graphs, asc/dsc counter, better algorithm to correct elevation...) and I want to ask you a few questions:
First, web app is easy for me, but I'm totally lost in native app.
1) As I want to save pressure value every one minute, is it possible to do via web app on background? I tried setInterval() function, but it stops after few minutes even if background is enabled in manifest. It the only way to do it via native service?
2) Is there way to access Samsung's Altimeter/Barometer app source code? Because I want to do my app same battery efficient as this app, which collects pressure data on background. Or is there way to access it's stored values of pressure?
Thank you!