title: Saving additional context with a view
body: <p>I have <code>GridView</code> which shows a list of thumbnails. After clicking on one of them I'd like to navigate to another activity with detailed view of a corresponding "thing".</p>
  
  <p>How should I store some additional data/identifiers such that on click I can pass it to the detailed activity? By default I only get position and id. I'd like to somehow store my custom identifier which I use to query external services for details. </p>
  
  <pre><code>gridview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
      public void onItemClick(AdapterView&lt;?&gt; parent, View v,
                              int position, long id) {
          Intent intent = new Intent(this, MovieDetails.class);
          intent.putExtra(MY_ID, &lt;some_extra_ID&gt;);
          startActivity(intent);
      }
  });
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>For example, I have a dynamic list of dishes with only photos of that dish (using GridView). When user clicks on one of them I want to show a detailed view with a recipe and comments.</p>
  
  <p>For that I need to pass name of that dish to load information in the detailed view.</p>