Set default pref from xml at LinphoneService start.

This commit is contained in:
Guillaume Beraudo 2011-04-06 15:46:24 +02:00
parent ce3b123bd1
commit 441f98e00f

View file

@ -39,6 +39,7 @@ import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Handler;
import android.os.IBinder;
import android.preference.PreferenceManager;
import android.util.Log;
/***
@ -97,6 +98,10 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
super.onCreate();
instance = this;
// Set default preferences
PreferenceManager.setDefaultValues(this, R.xml.preferences, true);
notificationTitle = getString(R.string.app_name);
// Dump some debugging information to the logs