title: Start new Intent from RecyclerViewAdapter
body: <p>I have <strong>RecyclerViewAdapter</strong> :</p>
  
  <pre><code>public class RecycleViewAdapter extends RecyclerView.Adapter&lt;RecycleViewAdapter.MyViewHolder&gt; {
  
  
  
      private List&lt;Cards&gt; items;
      private int itemLayout;
  
  
      Context context;
  
      public RecycleViewAdapter(List&lt;Cards&gt; items, int itemLayout) {
  
          this.items = items;
          this.itemLayout= itemLayout;
      }
  
      @Override
      public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  
         View view=LayoutInflater.from(parent.getContext()).inflate(itemLayout,parent,false);
          return new MyViewHolder(view);
      }
  
      @Override
      public void onBindViewHolder(MyViewHolder holder, int position) {
  
  
          Cards item=items.get(position);
          holder.title.setText(item.getName());
          String cardvalue = item.getCountry();
          String cardCode = item.getCode();
          String cardCountry = item.getCountry();
  
  
      }
  
      @Override
      public int getItemCount() {
  
          return items.size();
      }
      public static class  MyViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener{
  
          TextView title;
          public MyViewHolder(View itemView) {
  
              super(itemView);
  
              title= (TextView) itemView.findViewById(R.id.listText);
  
              title.setOnClickListener(this);
          }
  
          @Override
          public void onClick(View v) {
  
  
          }
      }
  }
  </code></pre>
  
  <p>and I need to start new Intent (<strong>OnCardsSelected.class</strong>)  , but I cant add this line to my method <code>onClick</code>:</p>
  
  <pre><code>Intent intent = new Intent (this, OnCardSelected.class);
  </code></pre>
  
  <p>I don't understand whats I do wrong, I just need to start Intent and put some information to this intent, I read some manuals but didn't understand  theirs explanation so I hope u will help me .Thanks</p>