BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   How to properly close a BB10 app after an error. (http://www.blackberryforums.com/showthread.php?t=264873)

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 09:34 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.