Good day to all.
Actually, need two advices. Both for watch face developing.
First one with getting GPS position for further calculations.
Before I used “currentLocation” from “Activity.getActivityInfo()”, but it makes some inconvenient, to get PSN data, need to activate GPS in short time before position data will be used. Same, when need to refresh changed GPS PSN – extra code requested.
Not so far, while making widget, I found that GPS PSN can be taken from “(Position.getInfo()).position” and it’s looks like that last received GPS PSN stored there constantly, and automatically updated, when received.
It’s properly working with beta fw 9.72, tested on Fenix 5x and 5s. But on fw 9.2 (same devices) got two different errors: 5x error – “Unexpected Type Error”, 5s – “Permission error”. After update devices to 9.72 all working smooth and without errors.
Question is: is it new possibility of last beta or bug of last official?
Second question regarding “settings” file from “resources” with watch face settings. One of my watch face has 8 cells to data selected by user. For each cell can be selected one from thirteen types of data. I’m using same list of option for each cell, it’s just duplicated eight times.
Question is: is there any possibility to avoid duplicating and call same option list for each cell?