How to enter credentials programmatically in Skype app for Android

人走茶凉 提交于 2020-01-04 06:19:03

问题


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);

回答1:


@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.



来源:https://stackoverflow.com/questions/35353839/how-to-enter-credentials-programmatically-in-skype-app-for-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!