Hi Leonard,
If you store the password as HA1, getPassword will return NULL.
To check if you are in this situation, open the linphonerc on your
device (I guess it is Android):
$ adb shell run-as org.linphone cat files/.linphonerc
If in the [auth_info_x] section you have
password=<something>
then it is a bug, however if you have
ha1=<something>
then everything behaves as intented.
Cheers.
Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 13/03/2016 05:01, Leonard Fodje a
écrit :
I am trying to retrieve password of default account.
The below code is giving null. Can someone help?
String password = LinphonePreferences.instance().getAccountPassword(0);
However, retrieving the username below works.
String username = LinphonePreferences.instance().getDefaultUsername();
Thanks,
Leonard
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers