Creating a Custom ActivityResultContract and Using in Jetpack Compose

Ngenge Senior
2 min readSep 15, 2022
Photo by GeoJango Maps on Unsplash

In this post, let us see how we can create a custom contract for calling Google’s AutoComplete Android APIs for searching locations. It will be a short post without explaining how to get a map API key. You can check your Google cloud console to get a key. You can check this link to set up a places API for Android and add the compose dependencies.

--

--