Is it possible to call mathod that is defined in Activity
from ListAdapter
?
(I want to make a Button
in list's
row and when this button is clicked it should perform the method, that is defined in current Activity. I tried to set onClickListener
in my ListAdapter
but I don't know how to call this method, what's its path...)
when I used Activity.this.method()
I get the following error:
No enclosing instance of the type Activity is accessible in scope
Any Idea ?