Integrate Android SDK

To integrate HOKO in your app, simply follow the 3 simple steps below.

Install HOKO in your project

Download the latest AAR or grab via Maven:


or Gradle:

compile 'com.hokolinks:hoko:2.0'

Setting up the AndroidManifest.xml

Add the following lines to your AndroidManifest.xml to make sure to have the following permissions:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Now for the actual deeplinking, please add the Activity and Receiver to the application of your AndroidManifest.xml

    <data android:scheme="===YOUR-URL-SCHEME===" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
  <intent-filter> <!-- Android M Users add android:autoVerify="true" for AppLinks on this intent-filter-->
    <data android:scheme="http" android:host="" />
    <data android:scheme="https" android:host="" />
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
<receiver android:name="com.hokolinks.deeplinking.DeferredDeeplinkingBroadcastReceiver"
    <action android:name="" />

The subdomain will be used to avoid request the user on which app to open the link and to avoid going through an HTML page redirect. Everytime a link with domain gets opened, it will automatically open your app and resolve the Smartlink into an actual Deeplink, redirecting the user to the proper Activity or Fragment.

More info on Why do I need a subdomain

SDK Setup

In your Application subclass setup the Hoko Framework in the onCreate() method:

public void onCreate() {
  Hoko.setup(this, "YOUR-APP-TOKEN");

Setup Android app →