protected void destroyApp(boolean unconditional) { mEndNow = true; try { conn.close(); } catch (IOException e) { System.out.println("destroy app caught"); e.printStackTrace(); } }
protected void pauseApp() { mEndNow = true; try { conn.setMessageListener(null); conn.close(); } catch (IOException e) { System.out.println("pause app caught"); e.printStackTrace(); } }