title: Making image full screen on android tutorial app
body: <p>Using the Hello, World Gridview tutorial example, I am attempting to make the image fullscreen on click instead of display the position of the image in the array.  As I am unfamilar with Android and this is my first development attempt with it, I'm at a loss.  I am familiar with Java though, and I've tried doing things like this (that don't work obviously):</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      GridView gridview = (GridView) findViewById(R.id.gridview);
      gridview.setAdapter(new ImageAdapter(this));
  
      gridview.setOnItemClickListener(new OnItemClickListener() {
          public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position, long id) {
              showImage(v, position);
              Toast.makeText(HelloAndroid.this, "" + parent.getId(), Toast.LENGTH_SHORT).show();
          }
      });
  }
  
  private void showImage(View view, int position) {
      ImageView imgView = (ImageView) view; 
      imgView.setImageResource(position);     
  }
  </code></pre>
  
  <p>But the app crashes (force close).  Any ideas?</p>
  
  <p><a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" rel="noreferrer">Here is the tutorial app I am using</a></p>