소스 검색

Bridge Activity will close without System.exit() so that Bridge Service will be alive as a foreground service.

Trishia 4 년 전
부모
커밋
a51d773c3b
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/src/main/java/org/iotivity/bridge/homeserver/BridgeServerActivity.java

+ 3 - 3
app/src/main/java/org/iotivity/bridge/homeserver/BridgeServerActivity.java

@@ -131,9 +131,9 @@ public class BridgeServerActivity extends AppCompatActivity {
 
         //or
 
-        Log.d(TAG, "System.exit() will be called");
-        System.runFinalizersOnExit(true);
-        System.exit(0);
+        //Log.d(TAG, "System.exit() will be called");
+        //System.runFinalizersOnExit(true);
+        //System.exit(0);
     }
 
     private void unbindBridgeService() {