Hi,
If I use the function dc.drawArc in a View which is working in the simulator, I get an exclamation mark when I upload it to my Fenix 3. Is this function not supported in SW version 4.70?
KR,
Christof
function onBack() {
Ui.popView(Ui.SLIDE_IMMEDIATE);
return true;
}
Hot wo catch the exception and debug it when it's not visible in the simulator? (as I said, I am quite new to this)
I am thinking if the timer is the problem, I will try to stop it when the app is closed (onStop())
class MyApp extends App.AppBase {
hidden var timer;
hidden var timer_callback;
function initialize() {
}
function onStart() {
timer_callback = null;
resumeTimer();
}
function onStop() {
pauseTimer();
timer_callback = null;
}
function pauseTimer() {
if (timer != null) {
timer.stop();
timer = null;
}
}
function resumeTimer() {
if (timer == null) {
timer = new Timer.Timer();
timer.start(self.method(:onTimer), 1000, true);
}
}
function onTimer() {
if (timer_callback != null) {
timer_callback.invoke();
}
}
function setTimerCallback(callback) {
timer_callback = callback;
}
function getInitialView() {
return [ new MyWatchView() , new InputDelegate()];
}
}
class MyWatchView extends Ui.View {
function initialize() {
App.getApp().setTimerCallback(self.method(:timerCallback));
}
function timerCallback() {
counter -= 1;
if (counter < 0)
{
counter = counter_start-1;
}
Ui.requestUpdate();
}
function onHide() {
Position.enableLocationEvents(Position.LOCATION_DISABLE, method(:onPosition));
App.getApp().pauseTimer();
}
function onShow() {
Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));
App.getApp().resumeTimer();
}
// rest of your code...
}
I had a look, but I cannot find the log file you mentioned above, there is no such .txt file. Did I miss some setting?
The file isn't there unless you make it.... As I said above, you must create the file.