BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   How to properly close a BB10 app after an error. (http://www.blackberryforums.com/developer-forum/264873-how-properly-close-bb10-app-after-error.html)

ggrosso 07-25-2013 10:23 AM

How to properly close a BB10 app after an error.
 
I am creating a app that goes to a network and pulls down a simple XML file. If everything goes okay, then the file (which contains some names) is displayed in a ListView control.

On the other hand, if there is an error (like a network error etc..) then I would like to show the user something, such as a message in a toast that lets them know that an error occurred, and then I want to close the app.

Can someone please show me how to do this correctly?

Thanks :smile:


All times are GMT -5. The time now is 01:27 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.