GithubHelp home page GithubHelp logo

isabella232 / skype-for-business-android-uri-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from officedev/skype-for-business-android-uri-sample

0.0 0.0 0.0 81 KB

Skype for Business Android Uri Sample

License: MIT License

Java 100.00%

skype-for-business-android-uri-sample's Introduction

page_type products description languages extensions
sample
office-skype-business
office-365
skype
Enable your app to launch a new chat, audio, or video call in the Skype for Business client installed on the Android device.
java
contentType platforms createdDate
samples
Android
7/6/2016 4:02:32 PM

Skype for Business Mobile URI SDK Sample

Build Status

Table of contents

Does your app show a people list that includes telephone numbers or Skype for Business Ids? How cool would it be if your app could launch a new chat, audio, or video call in the Skype for Business client installed on the Android device? With the code in this sample, all you need to do is ask a user to pick a person from your list (along with the associated phone number or Skype address), pick chat, audio, or video, and with a few lines of code, your app launches Skype in a new full screen activity. The call is already queued with the phone number or id.

##The code Just add the following code from the sample into your app.

       Button skypeButton = (Button) findViewById(R.id.button);
       final EditText SIPAddress = (EditText) findViewById(R.id.SIPAddress) ;
       final CheckBox videoCall = (CheckBox) findViewById(R.id.videoCheck);
       skypeButton.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View view) {

               String uriString = "ms-sfb://call?id="+SIPAddress.getText().toString();
               if (videoCall.isChecked()){
                   uriString +="&video=true";
               }
               Uri uri = Uri.parse(uriString);
               Intent callIntent = new Intent(Intent.ACTION_VIEW, uri);
               startActivity(callIntent);
           }
       } );

##The sample

The sample has only a main activity with a text box and button. So simple.

the main activity

##Device requirement To run the Skype Android Mobile SDK samples project, your device must meet the following requirement:

###Prerequisites To use the Skype Android Mobile SDK samples project, you need the following:

##Configure the project

  1. Download or clone the Skype-Android-Mobile-SDK-Samples.
  2. Start Android Studio.
  3. From the Welcome to Android Studio dialog box, choose Import project (Eclipse ADT, Gradle, etc).
  4. Select the settings.gradle file in the Skype-for-Business-Android-Uri-Sample folder, and then click OK.
  5. Respond to the dialog box ("Gradle Sync: Gradle settings for this project are not configured yet. Would you like the project to use the Gradle wrapper? ") by clicking the OK button to use the Gradle wrapper.

##Run the project After you've built the project you can run it on a device. Video calling is not currently supported on Android emulators.

  1. Run the project.
  2. Enter a telephone number with area code or enter a Skype for Business Id.
  3. Optionally, check the Video call checkbox.
  4. Click the MAKE SKYPE CALL button to start the call.

Questions and comments

We'd love to get your feedback about the Android Skype-Android-Mobile-SDK-Samples. You can send your feedback to us in the Issues section of this repository.
General questions about Office 365 development should be posted to Stack Overflow. Make sure that your questions are tagged with [Office365] and [API].

Contributing

You will need to sign a Contributor License Agreement before submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to submit a request via the form and then electronically sign the CLA when you receive the email containing the link to the document.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Additional resources

Copyright

Copyright (c) 2015 Microsoft. All rights reserved.

skype-for-business-android-uri-sample's People

Contributors

davidchesnut avatar o365devx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.