Skip to content

This application intentionally allows the user to cause Out Of Memory exception for demonstration and educational purposes.

License

Notifications You must be signed in to change notification settings

Fun-with-Garmin-Development/OOM-crasher

Repository files navigation

This is a simple example of Garmin watch application. The Connect IQ app lets the user to open/close views ("screens") and consume/free some device memory.

It will be used in a tutorial that demonstrates Memory Viewer of the Connect IQ Device simulator.

app view

Building and running the project

This project contains configuration files that allows for opening the project in [Visual Studio Code] with Monkey C extension. (Visit the documentation or see dedicated tutorial to set up the environment.)

App controls

Creating/closing a view happens when in onNextPage() and onPreviousPage() functions.

For the devices with buttons (for example, Fenix 5, Forerunner 235, etc.) you can invoke the following actions:

  • Create and show new view -- down button
  • Close current view -- up button

For the devices with a touch screen (for example, Fenix 7, Venue, etc.) onNextPage/onPreviousPage are usually triggered by swiping the touch screen up and down (SWIPE_UP/SWIPE_DOWN events).

There is additional action: forcing to refresh the screen. It happens in onSelect() function. For button devices it is triggered usually by Start/Enter button. For touch screen devices it is usually triggered by tapping the screen (CLICK_TYPE_TAP ClickEvent).

Contributing

This is an open-source project and all contributions are welcomed.

If you find a bug or have an idea on how to make the example better/simpler/more readable, please, submit an issue (or even PR).

About

This application intentionally allows the user to cause Out Of Memory exception for demonstration and educational purposes.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project