Sitemap
The Airbnb Tech Blog

Creative engineers and data scientists building a world where you can belong anywhere. http://airbnb.io

Follow publication

DeepLinkDispatch

AirbnbEng
4 min readJun 30, 2015
and

airbnb://rooms/8357
@DeepLink(“rooms/{id}”)
public class SomeActivity extends Activity {
...
}
if (getIntent().getBooleanExtra(DeepLink.IS_DEEP_LINK, false)) { 
Bundle parameters = getIntent().getExtras();
String someParameter = parameters.getString("id");
...
}
public class SomeApp extends App implements DeepLinkCallback {
@Override public void onSuccess(String uri) {
// Handle or track a successful deep link here
}
@Override public void onError(DeepLinkError error) {
// Handle or track and error here
}
}

Check out all of our open source projects over at airbnb.io and follow us on Twitter: @AirbnbEng + @AirbnbData

Medium Logo
Medium Logo

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

The Airbnb Tech Blog
The Airbnb Tech Blog

Published in The Airbnb Tech Blog

Creative engineers and data scientists building a world where you can belong anywhere. http://airbnb.io

AirbnbEng
AirbnbEng

Written by AirbnbEng

Creative engineers and data scientists building a world where you can belong anywhere. http://airbnb.io

Responses (4)

Write a response