22 questions
0
votes
1
answer
73
views
What the ERROR: "DEVICE: C:\PATH\source\APP.mc:21: Cannot override '$.Toybox.Application.AppBase.getInitialView' with a different return type" mean?
here's my code in pomodoroApp.mc in Monkey C
import Toybox.Application;
import Toybox.Lang;
import Toybox.WatchUi;
class PomodoroApp extends Application.AppBase {
private var _view as ...
-1
votes
1
answer
156
views
Garmin Connect IQ Array out of Bounds error without Stack
Im currently trying to build a Watch App using a ViewLoop. However i get a, to me unexplainable, Array out of Bounds Error.
The App generates Views from an Array of Objects and adds these to a ...
-1
votes
1
answer
242
views
Why did it take so long for my Visual Studio Code to debug Monkey C (Garmin Watch face Development tool)?
I'm trying to create a custom watch face for my Garmin device.
However, when I start debugging my app with a Hello World program, the page gets stuck in an endless load. [see image](https://i.sstatic....
0
votes
1
answer
102
views
How to obtain the heart rate from a EXTERNAL SENSOR in Monkey C
I've tried different codes but all end up in error. I'm using an Edge 820 and my version is 3.1.0
I've tried different codes I found online but none of them worked. I would appreciate if someone could ...
0
votes
1
answer
152
views
How to format float to omit zeros at the end of the fraction
I'd like to format a float so that it has at most 3 fractional digits, but if the last fractional digit(s) are 0 then omit them.
input : expected output
1.1234 : 1.123
1.120 : 1.12
1.100 : 1.1
1.0 : 1
...
2
votes
1
answer
1k
views
Garmin MonkeyC Communications.makeWebRequest stopped working when moved to SDK 4.2.4
Im stuck and looking for help with this error:
ERROR: fenix6: C:\....\OtherView.mc:90,8: Invalid '$.Toybox.Lang.Method(responseCode as $.Toybox.Lang.Number, data as Null or $.Toybox.Lang.Dictionary) ...
1
vote
1
answer
900
views
Handle buttons when switch to new view in monkey c Garmin
Hi I have an function to switch to another view:
WatchUi.switchToView(new weatherResultView(data), WatchUi.MenuInputDelegate, WatchUi.SLIDE_IMMEDIATE);
Inside weatherResultView view I need function ...
1
vote
1
answer
1k
views
Connect IQ Garmin Simulator test getting location by enableLocationEvents function
I need find position of watch.
I have an method:
function initializeListener() as Void {
System.println("start");
Position.enableLocationEvents(Position.LOCATION_ONE_SHOT, method(:...
3
votes
1
answer
2k
views
Garmin and Monkey C "Cannot find symbol ':setText'..."
I want to try a garmin WachFace and came across very quickly folgnden error, but unfortunately I do not know why it occurs, maybe someone can help you?
Cannot find symbol ':setText' on type 'PolyType&...
0
votes
1
answer
850
views
How to drill down into a nested object in Monkey C? (connect-iq)
EMULATOR
"fr945"
MIN API LEVEL
"3.0.0"
API DATA STRUCTURE
{
"data": {
"devices": [
{
"device": "00:...
-1
votes
1
answer
833
views
I wana have my application to fetch a html web page but i keep getting -400 whatever i try monkey c / garmin connect
even this exemple i found on the site of garmin has the same problem
https://developer.garmin.com/connect-iq/core-topics/https/
import Toybox.System;
import Toybox.Communications;
import Toybox.Lang;
...
1
vote
0
answers
1k
views
Garmin makeWebRequest in background service delegate can not wake app from callback
Trying to request a webrequest in the background, and trigger an application wake when it finishes. The example code works, but it's impossible to wake the app from a callback:
using Toybox.Background;...
0
votes
0
answers
155
views
Can a Connect IQ widget get details for currently playing audio
Would it be possible to get the details like song title and album for audio currently playing on a Garmin smart watch, regardless of the service (Spotify, Amazon Music) that the user is listening with?...
0
votes
1
answer
438
views
garmin connectciq-sdk ommand monkeyc not found in openjdk apline docker container
I'm running openjdk:13-alpine docker container and mounted the garmin connectiq-sdk files into the container.
Trying to run monkeyc command fails with "not found".
~/projects/garmin$ docker container ...
1
vote
1
answer
264
views
Why do my code changes not compile or show up when I run my MonkeyC program from Eclipse?
I am using Eclipse, the ConnectIQ add-on, and MonkeyC to write an app for a Garmin watch. I can run several sample apps on the simulator, but most of the time my edits don't deploy when I hit "Run".
...
0
votes
1
answer
1k
views
Where is located the folder containing the apps in a Garmin device?
I'm looking for the folder containing the installed apps in a Garmin Forerunner device.
I'm pretty curious to know how some apps are written in monkey c language, but, connecting the device to my ...
0
votes
1
answer
1k
views
Connect IQ Watch face own shaped Battery Status Bar
I am trying to show a battery status bar by using my own style (see image) on my Garmin Wacht Face.
At the moment I am using only 3 drawables (100% full, 50%, and 0% empty). Is there a possibility or ...
0
votes
1
answer
261
views
Memory Leak on Garmin Vivoactive HR in BLE Transmit function
I am developing a watch app for a Garmin Vivoactive HR that will send data to the phone periodically (using ConnectIQ SDK V2.3.4).
The available memory drops as the Communications.transmit(...) ...
0
votes
1
answer
734
views
Change icon for recorded activity from custom app in History list
I have made my own Connect IQ app for my Garmin Forerunner watch. I have changed the LauncherIcon to my own image instead of the default IQ-icon.
My app uses ActivityRecording so the activity can be ...
-6
votes
1
answer
2k
views
How to convert metres to centimetres in Monkey C?
Serious newbie question, but I can't seem to find the answer anywhere!
I'm trying to convert my height from centimetres to metres in an application for my Garmin device. This is written in Monkey C (...
3
votes
2
answers
365
views
Const keyword not recognized by MonkeyC
I am building project in monkeyc (ConnectIq) from Garmin in Eclipse, and I want to use const instead of var in my code, but it seems that the const keyword is not recognized by the compiler. What ...
1
vote
1
answer
2k
views
Connect IQ unexpected type Error when using setText
When a menu item is pressed I want to set the text of a label, however i'm getting the errors: "Failed invoking <symbol>" and "Unexpected Type Error".
In my menu delegate I have:
using Toybox....