https://kotlinlang.org logo
Title
u

user

07/11/2022, 3:11 AM
Android Kotlin AlertDialog.Builder() usage and context. "this" not working This is my very first time using Kotlin/Android App Development, so I apologise if I am missing something simple. I have a background in Java and C#. I'm trying to display an AlertBox containing X information. All the tutorials I am reading/watching stay that the constructor should be: val builder = AlertDialog.Builder(this) This issue I am having trouble with is the "this" part. I get a Type Mismatch error for the "this" reference. I have tried searching for a solution and I find variations...