I want to pass the data from the Activity containing a recyclerview to it's recyclerAdapter class. I just want to use a String in the adapter but I don't know how to get it from the activity. Is there any way to do this? Please keep in mind I want data from Activity to Adapter and not vice a versa
Edit: So in my activity, I have defined a public method:
public String getName(){
return f_name;
}
Now how do I call this in my adapter class? I'm not able to access my getName() method here !