Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Check wheither skypeClient authorized ?? #55

Open
minedun6 opened this issue Jan 23, 2015 · 1 comment
Open

Check wheither skypeClient authorized ?? #55

minedun6 opened this issue Jan 23, 2015 · 1 comment

Comments

@minedun6
Copy link

I'm trying to figure a way out as to check if the user authorized my application to use Skype, else I'll just use the SkypeClient.showRequestAuthorizationWindow(); which gives me this error :
com.skype.NotAttachedException
at com.skype.Utils.convertToSkypeException(Utils.java:57)
at com.skype.Utils.executeWithErrorCheck(Utils.java:226)
at com.skype.SkypeClient.showRequestAuthorizationWindow(SkypeClient.java:359)

Caused by: com.skype.connector.NotAttachedException
at com.skype.connector.Connector.assureAttached(Connector.java:987)
at com.skype.connector.Connector.execute(Connector.java:904)
at com.skype.connector.Connector.execute(Connector.java:861)
at com.skype.connector.Connector.execute(Connector.java:827)
at com.skype.connector.Connector.execute(Connector.java:786)
at com.skype.connector.Connector.execute(Connector.java:656)
at com.skype.Utils.executeWithErrorCheck(Utils.java:223)

Another thing to is that when I run the Skype.isInstalled(), there is an error pointing that skype is not installed on my system when I have properly installed ^^

this section over here is for further improvement, yu can write a run method method along with the isRuning() to open skype when its process is shutdown.
yu can also write a checkAuthorization to see if the user authorized their program via skype, if not
we use the SkypeClient.showRequestAuthorizationWindow(); to prompt the authorization.

And thx for this great lib ^^

@anandbansal5
Copy link

Even I am facing the same issue. I get isInstalled as false. :( Is there any confirguration setting that needs to be done?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants