title: Pass data from activity to recyclerAdapter - Android
body: <p>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</p>
  <p>Edit: So in my activity, I have defined a public method:</p>
  <pre><code>public String getName(){
  return f_name;
  }
  </code></pre>
  <p>Now how do I call this in my adapter class? I'm not able to access my getName() method here !</p>