浏览代码

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
         //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() {
     private void unbindBridgeService() {