|
From: | Erhan Tepe |
Subject: | Re: [Linphone-users] Linphone-android: Set Codecs (gsm, pcmu, pcma , etc) |
Date: | Tue, 17 Apr 2012 16:43:29 +0300 |
<CheckBoxPreference android:key="@string/pref_codec_gsm_key" android:title="@string/pref_codec_gsm" />
If you add android:defaultValue="false", the codec will be disabled initially. So the modified line will look like;
<CheckBoxPreference android:key="@string/pref_codec_gsm_key" android:defaultValue="false" android:title="@string/pref_codec_gsm" />
To set new values in the code;
Editor e = mPref.edit();
e.putBoolean(getString(R.string.pref_codec_gsm_key), true);
where "mPref" is defined in LinphoneManager.java class as;
private SharedPreferences mPref;
So, if you are going to call this from another class, you can simply change it to;
public static SharedPreferences mPref;
and make calls such as;
Hi Developers!
May I know how to programmatically set default values for the codecs (gsm, pcmu, pcma, etc) to true (as in where and how to set them)? Thanks for your help!
--
Best Regards,
Winona Kwok
_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users
[Prev in Thread] | Current Thread | [Next in Thread] |