Adding log at boot receiver
This commit is contained in:
parent
8627a858cb
commit
e7b1bb1841
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@ public class BootReceiver extends BroadcastReceiver {
|
||||||
} else {
|
} else {
|
||||||
String path = context.getFilesDir().getAbsolutePath() + "/.linphonerc";
|
String path = context.getFilesDir().getAbsolutePath() + "/.linphonerc";
|
||||||
LpConfig lpConfig = LinphoneCoreFactory.instance().createLpConfig(path);
|
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);
|
Intent lLinphoneServiceIntent = new Intent(Intent.ACTION_MAIN);
|
||||||
lLinphoneServiceIntent.setClass(context, LinphoneService.class);
|
lLinphoneServiceIntent.setClass(context, LinphoneService.class);
|
||||||
context.startService(lLinphoneServiceIntent);
|
context.startService(lLinphoneServiceIntent);
|
||||||
|
|
Loading…
Reference in a new issue