فهرست منبع

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() {