src/com/example/ant_simple_test/Activity_AsyncScanSampler.java
/**
     * Ensures our controller is closed whenever we exit
     */
Ensures our controller is closed whenever we exit
Ensures our controller is closed whenever we exit
@Override
    protected void onDestroy()
    {
        if(antScanCtrl != null)
        {
            antScanCtrl.closeScanController();
            antScanCtrl = null;
        }
        super.onDestroy();
    }
@ Override protected void onDestroy ( ) { if ( antScanCtrl != null ) { antScanCtrl . closeScanController ( ) ; antScanCtrl = null ; } super . onDestroy ( ) ; }
Ensures our controller is closed whenever we exit
Ensures our controller is closed whenever we exit