An application programming interface (API) specifies how some software components should interact with each others. All API calls consist of a "call name", called from now on "method", and multiple parameters.
This tutorial will guide you through the steps of putting a Ride Request Button into your Android app, and optionally displaying realtime information on that button to provide a better user experience.
At the end of this tutorial, you will have either a deep link button, or a deep link button with realtime information.
You can achieve this with about 10 lines of code for the button, and about 20 lines of code for the button with realtime information.
We can create a new Empty Activity project to demonstrate how to begin using the SDK. In Android Studio, choose Start a new Android Studio Project and when prompted to Add an Activity to Mobile, select Empty Activity and click Next.
In the next screen, set the Activity Name field to any name you want, leave everything else as the default and click Finish. You now have a boilerplate app with just one activity!
The best way to integrate the SDK into your existing project is to use a dependency manager. The SDK can be added to Maven or Gradle based projects. The following sections will focus on the respective dependency manager you use within your project.
Using a dependency manager such as Maven or Gradle makes it easy to keep your app udpated with the latest version of the SDK.
dependencies {
compile 'com.uber.sdk:rides-android:0.5.3'
}
This tutorial will guide you through the steps of putting a Ride Request Button into your Android app, and optionally displaying realtime information on that button to provide a better user experience.
At the end of this tutorial, you will have either a deep link button, or a deep link button with realtime information.
You can achieve this with about 10 lines of code for the button, and about 20 lines of code for the button with realtime information.
We can create a new Empty Activity project to demonstrate how to begin using the SDK. In Android Studio, choose Start a new Android Studio Project and when prompted to Add an Activity to Mobile, select Empty Activity and click Next.
In the next screen, set the Activity Name field to any name you want, leave everything else as the default and click Finish. You now have a boilerplate app with just one activity!
The best way to integrate the SDK into your existing project is to use a dependency manager. The SDK can be added to Maven or Gradle based projects. The following sections will focus on the respective dependency manager you use within your project.
Using a dependency manager such as Maven or Gradle makes it easy to keep your app udpated with the latest version of the SDK.
dependencies {
compile 'com.uber.sdk:rides-android:0.5.3'
}