Browse Source

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

Trishia 4 năm trước cách đây
mục cha
commit
a51d773c3b

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