I have Skype and Skype for Business installed on an Android device. I want to programatically make a VOIP call with Skype for Business. I create the intent like so:
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse("skype:" + somePhoneNumber));
context.startActivity(intent);
When I start the intent to make the call, a popup appears:
Complete action using:
Skype
Phone
Just Once Always
Skype for Business is not there.
I tried the followoing but it crashes (IllegalArgument)
intent.setData(Uri.parse("skype for business:" + somePhoneNumber));
What can I do?
Here's how I did it:
strings.xml
res/layout.skype.xml
AndroidManifest.xml
SkypeActivity.java
MainActivity.java (on a button click probably)