If you think it might be a bug, feel free to send us a test case (follow the directions in this post). Chances are good that we'll be able to figure it out pretty quickly.
Travis
Hi. Sorry Travis, one question, probably stupid but I am quite a begginer on this... how could I pass from 0x10000204 to a number similar to 268435972. I am trying to debug my file using the app log txt and the xml but I dont know how to read the values... Thanks for your help
It was really helpful but now I am blocked in a new problem :S Do you have an idea of how to solve it? I paste you the link of the post I openned:
Thanks a lot again for your help, much appreciated
Hello,
In a WatchUi.BehaviorDelegate class, in the onMenu() function, I'm trying to call a function from another class (the read() function from the test class), but the application crashes.
Error code:
Error: Unexpected Type Error
Details: Failed invoking <symbol>
Stack:
- onMenu() at C:\Users\bapti\OneDrive\Bureau\ble\source\viewDelegate.mc:34 0x100000f1
- handleEvent() at 704b03c0.mb:1462 0x30002969
Encountered app crash.
Code :
import Toybox.Lang;
import Toybox.WatchUi;
import Toybox.BluetoothLowEnergy;
class viewDelegate extends WatchUi.BehaviorDelegate {
var test as Test?;
public function initialize() {
BehaviorDelegate.initialize();
test = _test; //new $.Test();
}
function onMenu() as Boolean {
test.read();
//WatchUi.pushView(new Rez.Menus.MainMenu(), new bleMenuDelegate(), WatchUi.SLIDE_UP);
return true;
}
}
import Toybox.Graphics;
import Toybox.WatchUi;
import Toybox.BluetoothLowEnergy;
import Toybox.Lang;
class Test {
function initialize() {
}
function read(){
}
}
Can you help me ?