In the previous tutorial , you initialized the Support SDK for Android and added an identity for your users. In this tutorial, you'll add Help Center to your Android app.
Other tutorials in the series:
- Part 1 - Getting Started
- Part 2 - Adding Help Center - YOU ARE HERE
- Part 3 - Adding requests and app rating
This tutorial series assumes the following:
- You're comfortable with Android development and with using either Gradle or Maven for your dependencies
- You're using Android API level 9 (2.3) or higher
- You're using the SDK framework v184.108.40.206 or higher
Adding Help Center
Adding Help Center to your app is quite easy. In fact, it can take as little as two lines of code:
// Display Help Center new SupportActivity.Builder() .listCategories() .show(YourActivity.this);
You can use additional methods as well. For example, the following method lets you filter returned Help Center articles by labels:
// Filter returned HC articles via an array of labels new SupportActivity.Builder() .listArticlesByLabels("label_1", "label_2", "label_n") .show(YourActivity.this);
For details, see Adding Help Center in the SDK developer docs.
Specifying the Help Center locale
As specified in Changing the locale of Help Center content in the SDK developer docs, the locale of Help Center content can be set manually. The locale that you request must be enabled in your Help Center. If it's not, the SDK returns the best match based on what locales you support.
For example, if your device is in English (US) but you would like your Help Center content in German, you can call this code:
// Set user locale
We recommend calling
ZendeskConfig.INSTANCE.setDeviceLocale() before calling
If you need to change the locale after
ZendeskConfig.INSTANCE.init() , the SDK will need to download your app's settings again. In this case, the updated locale will be set during the next scheduled update of your app's settings.
Help Center added!
Congratulations! Help Center should now be available in your application. Your customers can check out any articles you have that are relevant to your product and get answers to their questions.
But what if they're looking for information that's not available in your Help Center? Good question. In the part 3 of this tutorial series, we'll look at implementing a few ways for users to provide feedback about your app and get help by creating tickets. Click to go to the next tutorial: Part 3 - Adding requests and app feedback .