title: Failed to send url through intent put extra method
body: <p><a href="https://stackoverflow.com/questions/40224677/intent-put-extra-method-is-crashing-the-app">Got the solution thanks to thomaspsk</a></p>
  
  <p>So I am parsing link urls from online database and displaying it in recycler view. I also want to send those urls through <code>Intent</code>'s <code>putExtra()</code> method </p>
  
  <p>I tried it using </p>
  
  <pre><code>Bundle bundle = intent.putExtra("image_link",my_data.getImage_link());
  </code></pre>
  
  <p>but it is not working </p>
  
  <p>here is a full adapter code.<br>
  Please also check if I am using click listener on the right position.<br>
  I saw some people using it under <code>ViewHolder</code>.</p>
  
  <pre><code>import android.content.Intent;
  
  import android.os.Bundle;
  import android.support.v7.widget.RecyclerView;
  import android.content.Context;
  import android.widget.ImageView;
  import android.widget.TextView;
  import android.view.LayoutInflater;
  
  import java.util.List;
  
  import com.bumptech.glide.Glide;
  
  import android.view.View;
  import android.view.ViewGroup;
  
  public class MyAdapter extends RecyclerView.Adapter&lt;MyAdapter.ViewHolder&gt; {
      private Context context;
      private List&lt;MyData&gt; my_data;
  
      public MyAdapter(Context context, List&lt;MyData&gt; my_data) {
          this.context = context;
          this.my_data = my_data;
      }
  
      @Override
      public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  
          View itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.recycler_child, parent, false);
  
          final ViewHolder holder = new ViewHolder(itemView);
          itemView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  int position = holder.getAdapterPosition();
                  Intent intent = new Intent(context, article.class);
                  Bundle bundle = intent.putExtra("image_link", my_data.getImage_link());
                  context.startActivity(intent);
              }
          });
  
          return new ViewHolder(itemView);
      }
  
      @Override
      public void onBindViewHolder(ViewHolder holder, int position) {
          holder.description.setText(my_data.get(position).getDescription());
          Glide.with(context).load(my_data.get(position).getImage_link()).into(holder.imageView);
      }
  
      @Override
      public int getItemCount() {
          return my_data.size();
      }
  
  
      public class ViewHolder extends RecyclerView.ViewHolder {
  
          public TextView description;
          public ImageView imageView;
  
          public ViewHolder(View itemView) {
              super(itemView);
              description = (TextView) itemView.findViewById(R.id.textView);
              imageView = (ImageView) itemView.findViewById(R.id.image);
          }
      }
  }
  </code></pre>