Want to develop a SIP client for Android using Liblinphone library. There is a LinphoneAuthInfo class that accepts authentication. And a LinphoneCore.addAuthInfo() That adds authentication info to the core.
The problem is that I cannot initialize LinphoneAuthInfo and LinphoneCore classes because they are interface classes and I don't know how to use theme.
If they was not interface classes I would do this:
// Create Authentication object
LinphoneAuthInfo authInfos;
authInfos.setDomain(id);
authInfos.setUserId(username);
authInfos.setPassword(password);
// Config Core
LinphoneCore linCore;
linCore.addAuthInfo(authInfos);
And finaly, this is the Liblinphone reference page:
http://www.linphone.org/docs/liblinphone-javadoc/org/linphone/core/LinphoneCore.html http://www.linphone.org/docs/liblinphone-javadoc/org/linphone/core/LinphoneAuthInfo.html
Absolutely an interface cannot be initialized. Because it has no method implementation. It's not a class!
I should use classes that implement these methods.
In fact I should use org.linphone.core (Library) instead of LinphoneCore (Intreface)