summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2016-06-01 17:09:18 -0400
committerJoey Grover <joeygrover@gmail.com>2016-06-01 17:09:18 -0400
commitcbe5af682efe4b4d0da9dc58528a1d8c16b81797 (patch)
treeec0a3a71b88d4aac811e083ac03a54a27c2eeedf
parent6e9ccf2651b3554d0f2826767fa9e71c6837da60 (diff)
downloadsdl_android-cbe5af682efe4b4d0da9dc58528a1d8c16b81797.tar.gz
Start proxy during onCreate for system service restarts
-rw-r--r--HelloSdl/src/com/hellosdl/sdl/SdlService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/HelloSdl/src/com/hellosdl/sdl/SdlService.java b/HelloSdl/src/com/hellosdl/sdl/SdlService.java
index 053d47d85..98678a11a 100644
--- a/HelloSdl/src/com/hellosdl/sdl/SdlService.java
+++ b/HelloSdl/src/com/hellosdl/sdl/SdlService.java
@@ -114,6 +114,15 @@ public class SdlService extends Service implements IProxyListenerALM{
}
+
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ startProxy();
+ }
+
+
+
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if(proxy == null){