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