Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Pass image to a new Intent

Pass image to a new Intent

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Pass image to a new Intent

Postby enicolas » Thu Nov 19, 2009 7:08 pm

Hi
I've got a problem
My app show a first layout like:

Gridview1 (3 images in 1 row)
ImageView1 (1 image)
Gridview2 (3 images in 1 row)
ImgaeView2 (1 image)
Gridview3 (3 images in 1 row)
ImgaeView3 (1 image)

When you clik over an image it will be open full screen in a second
layout

The problem was that I don't know how to pass the image to the new
intent

Now I've the next code:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public AdapterView.OnItemClickListener pulsarImagen = new
  2.  
  3. AdapterView.OnItemClickListener()
  4.  
  5.     {
  6.  
  7.                 public void onItemClick(AdapterView<?> arg0, View arg1, int
  8.  
  9. arg2,long arg3)
  10.  
  11.                 {
  12.  
  13.                         Intent intent = new Intent(GridViewer.this , GalleryViewer.class);
  14.  
  15.                         intent.putExtra("id", arg0.getItemIdAtPosition
  16.  
  17. (arg2));
  18.  
  19.                         startActivity(intent);
  20.  
  21.                         //finish();
  22.  
  23.                 }
  24.  
  25.     };
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


But the ItemID is always 0...

Before I've only one gridview and then I passed the item's position.
But now I've 3 different gridviews and I don't know if the position of
item selecte it's from gridview 1,2 or 3.

I supose that the great solutin it will be to pass the id resource
(image) but I don't know how to pass it.

Can you help me?

ENM
enicolas
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Nov 19, 2009 7:06 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests