Hello.
I want to create simple app, that works in background, recieving BLE packets, showing information from sensors.
But i stack at beginning.
I cant draw any text dynamically.
At first I create testApp and label in testView.
Added some code to testView:
// Update the view function onUpdate(dc as Dc) as Void { // Call the parent onUpdate function to redraw the layout View.onUpdate(dc); //View.findDrawableById("Background").setColor(getBackgroundColor()); var _label = View.findDrawableById("label") as Text; _label.setText(init_text); }
It worked.
After that i tried to change data from testMenuDelegate (where i will parse my BLE data in future).
And get error "Cannot find symbol ':findDrawableById' on class definition '$.Toybox.WatchUi.View'.".
Also i tried to add public function:
to class in testView and after that i tried: