title: Show image gallery
body: <p>When I click a picture from <code>galleryview</code>, I want to show the picture I selected from it. I did it with a toast that gives me the picture I clicked, but I want to show it in another activity.</p>
  
  <p>How can I do this?</p>
  
  <p>This is my gallery activity.</p>
  
  <pre><code> public View getView(int position, View convertView, ViewGroup parent) {   
                  inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                  View vi=convertView;   
                  final Players players = getItem(position);
  
  
                  if(convertView==null){  
  
  
                      vi = inflater.inflate(R.layout.pictures, null); 
  
                      ImageView image=(ImageView) vi.findViewById(R.id.imageView1);
  
                      TextView text1=(TextView)vi.findViewById(R.id.textView1);  
                      TextView text2=(TextView)vi.findViewById(R.id.textNom);
                      TextView text3=(TextView)vi.findViewById(R.id.textPost);
                      TextView text4=(TextView)vi.findViewById(R.id.textDdn);
  
                      text1.setText(players.getNm()); 
                      text2.setText(Html.fromHtml( players.getNom()).toString());
                      text3.setText(Html.fromHtml( players.getPost()).toString().replace("Ž", "é"));
                      text4.setText(players.getDdn());
  
                      imageLoader.displayImage(players.getImage()image,options);
  
  
                  galleryView.setOnItemClickListener(new OnItemClickListener() {
  
                      @Override
                      public void onItemClick(AdapterView&lt;?&gt; arg0, View view, int position,long arg3) {
                          Toast.makeText(getApplicationContext(), players.getImage() , Toast.LENGTH_SHORT).show();
  
                      }
                  });
              }
  </code></pre>
  
  <p>and this is what i did in other activity witch make me probleme to show it : </p>
  
  <pre><code>class ImageAdapter extends ArrayAdapter&lt;Players&gt; {
  
      public ImageAdapter(Context context, int textViewResourceId,List&lt;Players&gt; objects) {
          super(context, textViewResourceId, objects);
      }
  
      public View getView(int position, View convertView, ViewGroup parent) {   
          inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          View vi=convertView;   
  
          Players players = getItem(position);
  
          if(convertView==null){  
  
              vi = inflater.inflate(R.layout.gallery_player, null); 
  
              imageLoader.displayImage(players.getImage(), img, options);
          }
          return vi;
      }
  }
  }
  </code></pre>