title: Android pass value from activity to adapter
body: <p>I want to pass variable from activity to adapter.</p>
  
  <p>My adapter looks like this</p>
  
  <pre><code>  public SampleAdapter(Activity context, ArrayList&lt;SampleBeans&gt; data){
    this.context = context;
    this.data = data;
    }
  </code></pre>
  
  <p>My Activity looks like this</p>
  
  <pre><code>  newadapter = new SampleAdapter(this);
    newadapter.setId(Login_uuid_value);
  </code></pre>
  
  <p>Gives me error SampleAdapter cannot be applied to the activity.</p>