The ListView is a widget used extensively in Android applications to display data. Nowadays most high end phones can handle unoptimized code at tolerable speeds. However, a large percentage of Android devices are still using single core processors with limited memory. This post explains an easy way of optimization for developers.
I m sure that you have seen that check when leaving an application, it is very simple to implement and I will show you how it works
We will use the property isShown() from the class Toast to make a simple exit check to avoid to close de application by a mistake.