Terminate the application
When the user closes the Good Citizen application, we need to do a bit of cleaning up to make sure the application shuts down properly. When the application receives a NAVIGATOR_EXIT event, the system directs the application to start shutting down. The application then has a certain amount of time (about 500 ms) to save its state and perform any additional cleanup operations. After this time has elapsed, the system will terminate the application if it is still running. To perform clean exits, you should avoid cleanup operations that take a long time (such as writing large amounts of data to a file).
screen_destroy_context(screen_cxt); return 0;
That's it! You can now run and play with the Good Citizen application! You can try changing the behavior of the application to use different colors, change the menu text, or use a different shape for the object.
Last modified: 2015-03-31