Adding log at boot receiver

This commit is contained in:
Erwan Croze 2017-01-03 16:31:37 +01:00
parent 8627a858cb
commit e7b1bb1841

View file

@ -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);