From e7b1bb18411a31199bf6e3de40395157610ab6c2 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Tue, 3 Jan 2017 16:31:37 +0100 Subject: [PATCH] Adding log at boot receiver --- src/org/linphone/BootReceiver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/linphone/BootReceiver.java b/src/org/linphone/BootReceiver.java index 5771e2775..ebff035c3 100644 --- a/src/org/linphone/BootReceiver.java +++ b/src/org/linphone/BootReceiver.java @@ -36,7 +36,9 @@ public class BootReceiver extends BroadcastReceiver { } else { String path = context.getFilesDir().getAbsolutePath() + "/.linphonerc"; LpConfig lpConfig = LinphoneCoreFactory.instance().createLpConfig(path); - if (lpConfig.getBool("app", "auto_start", false)) { + boolean autostart = lpConfig.getBool("app", "auto_start", false); + android.util.Log.i("LinphoneBootReceiver", "Device is starting, auto_start is " + autostart); + if (autostart) { Intent lLinphoneServiceIntent = new Intent(Intent.ACTION_MAIN); lLinphoneServiceIntent.setClass(context, LinphoneService.class); context.startService(lLinphoneServiceIntent);