# How to check if GraphQL is connected to your android app through logging queries?

**URL:** <https://community.apollographql.com/t/how-to-check-if-graphql-is-connected-to-your-android-app-through-logging-queries/6210>\
**Category:** Client SDKs\
**Tags:** kotlin\
**Created:** [May 1, 2023, 4:50pm UTC](https://community.apollographql.com/t/how-to-check-if-graphql-is-connected-to-your-android-app-through-logging-queries/6210 "2023-05-01T16:50:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ace\_domingo](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@ace\_domingo](https://community.apollographql.com/u/ace_domingo)\
**Post date:** [May 1, 2023, 4:50pm UTC](https://community.apollographql.com/t/how-to-check-if-graphql-is-connected-to-your-android-app-through-logging-queries/6210/1 "2023-05-01T16:50:15Z")

</div>

Hello. I am trying to figure out how to execute my query and just checking if it logs. I try to run it but it’s not logging anything. I tried putting it in my MainActivity,kt but it does not work. I am using Android Studio and I am developing an Android App. Please help me I am very new to kotlin and coding

 ![image](https://us1.discourse-cdn.com/flex019/uploads/apollographql/original/2X/c/cabe9144137901cb9076dbd430c0edceed93346c.png)

---

<div class="post-metadata">

**Author:** ![mbonnin](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/mbonnin/32/13_2.png) [@mbonnin](https://community.apollographql.com/u/mbonnin)\
**Post date:** [May 1, 2023, 9:39pm UTC](https://community.apollographql.com/t/how-to-check-if-graphql-is-connected-to-your-android-app-through-logging-queries/6210/2 "2023-05-01T21:39:22Z")

</div>

Hi 👋 that sounds about right. Maybe try catching any exception to see if something wrong happened?

```kotlin
try {
  val response = apolloClient.query(GetRoutesQuery()).execute()
  Log.d("LaunchList", "Success ${response.data}")
} catch (e: Exception) {
  Log.d("LaunchList", "oops", e)
}

```

---

<div class="post-metadata">

**Author:** ![ace\_domingo](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@ace\_domingo](https://community.apollographql.com/u/ace_domingo)\
**Post date:** [May 2, 2023, 6:15pm UTC](https://community.apollographql.com/t/how-to-check-if-graphql-is-connected-to-your-android-app-through-logging-queries/6210/3 "2023-05-02T18:15:44Z")

</div>

Hello, thank you for responding.

I figured out why the Logcat was not displaying any logs; it was because I was using BlueStacks as my emulator. Unfortunately, there are still no signs of query being executed.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/apollographql/original/2X/4/48387f616545f1bef096bb81f4a9382df054d484.png)

> [@mbonnin](#):
>
> ```auto
> try {
> val response = apolloClient.query(GetRoutesQuery()).execute()
> Log.d("LaunchList", "Success ${response.data}")
> } catch (e: Exception) {
> Log.d("LaunchList", "oops", e)
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![mbonnin](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/mbonnin/32/13_2.png) [@mbonnin](https://community.apollographql.com/u/mbonnin)\
**Post date:** [May 2, 2023, 6:26pm UTC](https://community.apollographql.com/t/how-to-check-if-graphql-is-connected-to-your-android-app-through-logging-queries/6210/4 "2023-05-02T18:26:47Z")

</div>

Your `LaunchList()` symbol is grayed out up there. Maybe make sure you’re calling it from another @Composable function?

---

<div class="post-metadata">

**Author:** ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Post date:** [February 6, 2025, 8:48pm UTC](https://community.apollographql.com/t/how-to-check-if-graphql-is-connected-to-your-android-app-through-logging-queries/6210/5 "2025-02-06T20:48:55Z")

</div>


