Hi, through ERA, I see that an app I manage get an unhandled exception at this line:
data.put("status", Application.loadResource(Rez.Strings.label_asleep) + " @ " + System.getClockTime().hour.format("%d")+":"+System.getClockTime().min.format("%02d"));
The string file for that language exists and 'data' is read from Background.getBackgroundData() or set {} if null was returned. So the only line I can see that can produce the exception is RealTimeClockNotValidException ("Real-Time Clock (RTC) value is not secure, i.e. not synced with trusted sources, such as GPS"). I plan on doing this because I can't find a way to check if the RTC is 'secure'.
try {
data.put("status", Application.loadResource(Rez.Strings.label_asleep) + " @ " + System.getClockTime().hour.format("%d")+":"+System.getClockTime().min.format("%02d"));
} catch (e) {
data.put("status", Application.loadResource(Rez.Strings.label_asleep));
}
I can't simulate it so turning here to know if you guys think this is a valid logic.
Thanks.