title: How do I share images from RecyclerView?
body: <p>My target is to share the image from <strong>ImageView</strong> inside <strong>RecyclerView</strong> to the others apps.The image is loaded from <strong>Firebase storage</strong> using Picasso lib.</p>
  
  <p>I have added a Share button below each item but cant proceed further.</p>
  
  <p>This is my MainActivity.</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  private RecyclerView mBlogList;
  
  private DatabaseReference mDatabase;
  
  private LinearLayoutManager mLayoutManager;
  
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.activity_main);
      mDatabase = FirebaseDatabase.getInstance().getReference().child("Blog");
      mDatabase.keepSynced(true);
      mBlogList = (RecyclerView) findViewById(R.id.blog_List);
      mBlogList.setHasFixedSize(true);
      mBlogList.setLayoutManager(new LinearLayoutManager(this));
      mLayoutManager = new LinearLayoutManager(MainActivity.this);
      mLayoutManager.setReverseLayout(true); // THIS ALSO SETS     setStackFromBottom to true
      mBlogList.setLayoutManager(mLayoutManager);
      mLayoutManager.setStackFromEnd(true);
  
  
  
  
  }
  
  @Override
  protected void onStart() {
      super.onStart();
  
  FirebaseRecyclerAdapter&lt;Blog, BlogViewHolder&gt; firebaseRecyclerAdapter = new            FirebaseRecyclerAdapter&lt;Blog, BlogViewHolder&gt;(
  
              Blog.class,
              R.layout.blog_row,
              BlogViewHolder.class,
              mDatabase
      ) {
  
          @Override
  
          protected void populateViewHolder(BlogViewHolder viewHolder, Blog model,int position) {
              viewHolder.setTitle(model.getTitle());
  
              viewHolder.setImage(getApplicationContext(), model.getImage());
  
  
          }
      };
  
      mBlogList.setAdapter(firebaseRecyclerAdapter);
  
  
  
  }
  
  public static class BlogViewHolder extends RecyclerView.ViewHolder {
      View mView;
  
  
      public BlogViewHolder(View itemView) {
          super(itemView);
          mView = itemView;
      }
  
  
      public void setTitle(String title) {
          TextView post_title = (TextView) mView.findViewById(R.id.post_title);
          post_title.setText(title);
      }
  
      public void setImage(final Context ctx, final String image) {
          final ImageView post_image = (ImageView) mView.findViewById(R.id.post_image);
          Picasso.with(ctx).load(image).networkPolicy(NetworkPolicy.OFFLINE).into(post_image, new Callback() {
              @Override
              public void onSuccess() {
  
              }
  
              @Override
              public void onError() {
                  //Try again online if cache failed
                  Picasso.with(ctx)
                          .load(image)
                          .error(R.drawable.header)
                          .into(post_image, new Callback() {
                              @Override
                              public void onSuccess() {
  
                              }
  
                              @Override
                              public void onError() {
                                  Log.v("Picasso", "Could not fetch image");
                              }
  
  
  
                          });
  
  
  
              }
          });
      }
  
  
  
  }
  </code></pre>