Android Studio 2.0, which was released a few days ago now supports integration with Google App Indexing.
Google App Indexing Integration & Testing has been added directly to the studio. If you "add App Indexing into your app helps you re-engage your users," says Google. "In the first preview of Android Studio 2.0 you could add indexing code stubs into your code. With the beta release you can now test and validate your URL links in your app all within the IDE."
Here are the relevant information around Android Studio and App Indexing:
Supporting app indexing is now even easier with Android Studio 2.0. App Indexing puts your app in front of users who use Google Search. It works by indexing the URL patterns you provide in your app manifest and using API calls from your app to make content within your app available to both existing and new users. Specifically, when you support URLs for your app content, your users can go directly to those links from Google Search results on their device.
- Code Generation Introduced in Android Studio 2.0 Preview, you can right click on AndroidManifest.xml or Activity method (or go to Code → Generate…→ App Indexing API Code) to insert HTTP URL stub codes into your manifest and app code.
- *New for Beta* URL Testing & Validation What is new in Android Studio 2.0 Beta is that you can now validate and check the results of your URLs with the built-in validation tool (Tools → Android → Google App Indexing Test). To learn more about app indexing, click here.
Pretty cool and it should help tremendously with developers adding App Indexing support in their Android apps.
Forum discussion at Twitter.