# How to Load .gif by a button and with an EditText url

**URL:** <https://community.glideapps.com/t/how-to-load-gif-by-a-button-and-with-an-edittext-url/39458>\
**Category:** Ask for Help\
**Created:** [March 10, 2022, 9:53am UTC](https://community.glideapps.com/t/how-to-load-gif-by-a-button-and-with-an-edittext-url/39458 "2022-03-10T09:53:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liliso1](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@liliso1](https://community.glideapps.com/u/liliso1)\
**Post date:** [March 10, 2022, 9:53am UTC](https://community.glideapps.com/t/how-to-load-gif-by-a-button-and-with-an-edittext-url/39458/1 "2022-03-10T09:53:15Z")

</div>

Hello, i’m a complete beginner and if possible i would need your help…  
I would like the user to be able to change an EditText .gif url on a SettingActivity, and then when he return on the MainActivity he can load the .gif by clicking on a button. I’m stuck with telling the app that he can find the url on (EditText) findViewById(R.Id.ExampleEditText). When i do that i got this error :

None of the following functions can be called with the arguments supplied:  
public constructor EditText(context: Context!) defined in android.widget.EditText  
public constructor EditText(context: Context!, attrs: AttributeSet!) defined in android.widget.EditText  
public constructor EditText(context: Context!, attrs: AttributeSet!, defStyleAttr: Int) defined in android.widget.EditText  
public constructor EditText(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int) defined in android.widget.EditText

and this one : Overload resolution ambiguity:  
public open fun load(bitmap: Bitmap?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager  
public open fun load(drawable: Drawable?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager  
public open fun load(uri: Uri?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager  
public open fun load(file: File?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager  
public open fun load(url: URL?): RequestBuilder\<Drawable!\>! defined in com.bumptech.glide.RequestManager  
public open fun load(model: Any?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager  
public open fun load(model: ByteArray?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager  
public open fun load(resourceId: Int?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager  
public open fun load(string: String?): RequestBuilder\<Drawable!\> defined in com.bumptech.glide.RequestManager

I think i understand that i need to set a context ??  
Also there is my kotlin code, for now i’m only trying to call the gif from the EditText without button instructions :

class PlayerActivity : AppCompatActivity() {

```
private lateinit var imageView: ImageView
private val url = (EditText()) findViewById(R.id.greengif)

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_player)
    imageView = findViewById(R.id.viewgreengif)
    Glide.with(this)
        .load(url)
        .into(imageView)

    val googleActivityBtn: Button = findViewById (R.id.btntools)

    googleActivityBtn.setOnClickListener {
        val intent = Intent(this, ActivityGoogleSignIn::class.java)
        startActivity(intent)
    }
}

```

}

The google activity btn is the one i use to go to my settings and change the EditText Url.  
I sincerly hope i’m not asking too much…

Best regards,  
Victor

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 10, 2022, 12:52pm UTC](https://community.glideapps.com/t/how-to-load-gif-by-a-button-and-with-an-edittext-url/39458/2 "2022-03-10T12:52:30Z")

</div>

This looks like very complex things for Glide Apps. I’m pretty sure we have never seen Kotlin mentioned as a programming language used in Glide.

Can you explain your problem in some screenshots or a video?
