Hello,
I have build an Application for the Fenix 3 and I have some parameters that I will the values when the application exit and retrieve then when the application start.
I have found the AppBase.getProperty(key) or AppBase.setProperty(key) but I am a new programmer and a good example to how to save a parameter and then get it back
will be for me very helpful.
I have the intern variable Dist for the distance.
There is my code
class FRAC2App extends App.AppBase {
//! onStart() is called on application start up
function onStart() {
App.getApp().getProperty(0, Dist);
sys.println("start");
}
//! onStop() is called when your application is exiting
function onStop() {
App.getApp().setProperty(0, Dist);
sys.println("stop");
}
Kind regards