Category "kotlin"

Unresolved reference in kotlin with id and activity_main

I'm actually creating a new app in kotlin to display an xml file in boxes with the informations formatted To problem is that when I'm building the app, there i

How to create constructor of custom view with Kotlin

I'm trying to use Kotlin in my Android project. I need to create custom view class. Each custom view has two important constructors: public class MyView extend

Run espresso test multiple times

Sometimes I faced with rare bug in my application. But I can't reproduce it as it's very rare. So, I decided to write simple espresso test: @RunWith(AndroidJUn

Kotlin: return a value on button click

I'm just starting out on learning Kotlin, and I'm currently making a simple Quiz application for Android. The user can choose an answer with four buttons which

Android app link not working in android 12 always opening in browser

I have hosted assetlinks file into our domain https://ourdomain/.well-known/assetlinks.json And also verified this using https://developers.google.com/digital-a

How to suppress field from GraphQLClientRequest request body?

When I use ExpediaGroup graphql-kotlin client to call a GQL query, it inserts a field besides the query, variables and operationName. I understand this field co

How to see the type of variable within Android Studio IDE

How to see the type of variable in Android Studio when using Kotlin without type annotations. Currently I'm trying to see it by giving the variable a type I kn

Deprecated "getBitmap" with API 29. Any alternative codes?

My onActivityResult is not working because getBitmap is deprecated, any alternative codes to achieve this? here are the codes that needs to be changed, any sug

Dialogflow v2 android sdk - Add QueryParameters to QueryInput

i'm actually trying to use Dialogflow v2 with java sdk in android. I can already make queries to dialogflow but I wanted to send some payload with my query. Be

Dialogflow v2 android sdk - Add QueryParameters to QueryInput

i'm actually trying to use Dialogflow v2 with java sdk in android. I can already make queries to dialogflow but I wanted to send some payload with my query. Be