Reputation: 4208
Currently I have an application that makes a Skype call using Intents
. However this assumes that the user is currently logged into his Skype account.
I want to avoid this and instead programmatically enter the user's credentials in the Skype app so that it does not show the login screen.
Right now I have to manually go to the Skype app enter the credentials for the calling to work.
Is there anyway I can do this through code? Is there any API available?
My current implementation is just about making the Intent as follows
Intent sky = new Intent("android.intent.action.CALL_PRIVILEGED");
sky.setClassName("com.skype.raider",
"com.skype.raider.Main");
sky.setData(Uri.parse("tel:" + number));
ctx.startActivity(sky);
Upvotes: 2
Views: 661
Reputation: 138
@Parth
Since you are using skype to make the call, thus you will be using the skype user account to login. Now, the target application should be responsible for login and user credential handling for its own accounts, rather than you asking for credentials yourself. This keeps credential handling independent of the source application, and thus paves the way for new forms of sign in (for e.g certificates, fingerprint etc.)
Also asking for credentials for an account means that you now responsible for the session as well as security liabilities for that account, atleast for that session, thereby putting the account credentials, at risk.
Conclusion: let the target app handle its own sign in process.
Upvotes: 1