Testing beeps...

Former Member
Former Member
Hello all

When I develop an app that use the speaker for notification I was allways wasting time testing each sound available in ConnectIQ. That's why I developped a (stupid) app that allow you to choose and play any of the available sounds..

It has been approved today by Garmin and is available here : https://apps.garmin.com/en-US/apps/a32959dc-15fd-4399-89ec-91889009cb8f

Hope this will help you too ;-)

Regards
  • not released yet and already a feature request :)
    maybe you can extend the app with a vibration-length+strength setter to test that as well :)
  • Former Member
    Former Member
    Queretaro hacienda

    That's the next one I planned to release ;-)
    You read my mind....
  • just tried it, the up/down keys don't work on my device (fr735xt), start button works and plays the tone.
  • If you include vibrations, another thing to note is not all watches support tones and vibrations. The va and va-hr only support vibrations, and things like the Edges, Oregon, and Rino, only tones.

    Maybe in the app show if one or the other, or both are supported?
  • Former Member
    Former Member
    just tried it, the up/down keys don't work on my device (fr735xt), start button works and plays the tone.



    Just tested it on the simulator and the keys are working... I don't have a "real" forerunner to test it :-( Any hint ? I use the following code :

    [FONT=Courier New] function onKeyReleased( evt )
    {
    var key = evt.getKey();

    if( key == KEY_UP )
    {
    viewControler.viewUp();
    return true;
    }

    if ( key == KEY_DOWN )
    {
    viewControler.viewDown();
    return true;
    }

    if ( key == KEY_ESC )
    {
    System.exit();
    return true;
    }

    return false;
    }[/FONT]
  • Former Member
    Former Member
    just tried it, the up/down keys don't work on my device (fr735xt), start button works and plays the tone.


    Strange as it works on the simulator for that watch. Unfortunately I don't own one and can't test "for real". Here's the code I use. Any idea ?

    Regards

    [FONT=Comic Sans MS] function onKeyReleased( evt )
    {
    var key = evt.getKey();

    if( key == KEY_UP )
    {
    viewControler.viewUp();
    return true;
    }

    if ( key == KEY_DOWN )
    {
    viewControler.viewDown();
    return true;
    }

    if ( key == KEY_ESC )
    {
    System.exit();
    return true;
    }

    return false;
    }[/FONT]
  • Try using onKey() instead of onKeyReleased()

    onKeyPressed() and onKeyReleased() are kind of "odd" on some devices.
  • not sure why the onkeyreleased would not work, in my starttorun app I use the onKey event:

    function onKey(key) {
    var evt = key.getKey();
    if (evt == Ui.KEY_ENTER) {
    ...
    } else if (evt == Ui.KEY_UP) {
    ...
    } else if (evt == Ui.KEY_DOWN) {
    ...
    } else if (evt == Ui.KEY_MENU) {
    ...
    }
    }


    maybe that works better?
  • Former Member
    Former Member
    Just changed to onKey and republished it.... Please let me know ;-)

    Regards
  • Former Member
    Former Member
    I was able to test it out on the 735 and the up and down keys are working now.

    Thanks,
    -Coleman