Skip to content Skip to sidebar Skip to footer

Android: Accessing A Global Variable Inside An Onclicklistener

So in Android/Java, I need to access a global variable that is an EditText[]that I create above the onCreate method of my activity inside of an onClickListener. Here is the variabl

Solution 1:

Why don't you make the listener a class outside and pass the activity reference to it?


Post a Comment for "Android: Accessing A Global Variable Inside An Onclicklistener"