title: android imageButton onClick method not calling
body: <p>EDIT: Posting full code (except XML as it a bunch of ridiculous table formatting!) Please ignore the code that doesn't pertain to my question! I am just getting functionality right now. I'll clean it up later.</p>
  <p>First app and first question. I've researched here a while and usually find my answer but I have a bugger that is probably very obvious. I have an imageButton that doesn't seem to be calling the method assigned.</p>
  <p>My XML for my imageButton:</p>
  <pre><code>&lt;ImageButton 
   android:background=&quot;@null&quot;
   android:onClick=&quot;click&quot; 
   android:layout_width=&quot;wrap_content&quot; 
   android:layout_height=&quot;wrap_content&quot; 
   android:id=&quot;@+id/imageButton1&quot; 
   android:src=&quot;@drawable/stats&quot; 
   android:layout_gravity=&quot;center_vertical&quot;&gt;
  &lt;/ImageButton&gt;
  </code></pre>
  <p>My code:</p>
  <pre><code>package com.talismancs;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.graphics.drawable.Drawable;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.ImageView;
  import android.widget.TextView;
  
  public class sheet extends Activity{
     private String selection;
     private String pick;
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.sheet);
    Bundle extras = getIntent().getExtras(); 
   
    
    if(extras !=null) {
        // Get extra from .main and remove spaces
        String pick = extras.getString(selection);
        pick = pick.replace(&quot; &quot;, &quot;&quot;);
        
        //Convert extra from string to int as ID and make image
        int imageResource = getResources().getIdentifier(pick, &quot;drawable&quot;, getPackageName());
        ImageView iv = (ImageView) findViewById(R.id.imageView1);
        final Drawable image = getResources().getDrawable(imageResource);
        iv.setImageDrawable(image);
        
        // Populate tv's from string
        TextView tv1 = (TextView) findViewById(R.id.textView4);
        TextView tv2 = (TextView) findViewById(R.id.textView5);
        TextView tv3 = (TextView) findViewById(R.id.textView6);
        TextView tv4 = (TextView) findViewById(R.id.textView7);
        TextView tv5 = (TextView) findViewById(R.id.textView8);
        int arrayresource = getResources().getIdentifier(pick, &quot;array&quot;, getPackageName());
        String[] CharString = getResources().getStringArray(arrayresource);
        tv1.setText(CharString[0]);
        tv2.setText(CharString[1]);
        tv3.setText(CharString[2]);
        tv4.setText(CharString[3]);
        tv5.setText(CharString[4]);
      }
    
    }
  
  public void onClick(View view) {
      Intent i = new Intent(sheet.this, stats.class);
      i.putExtra(pick, pick);
      startActivity(i);
      
  }
        
  </code></pre>
  <p>}</p>
  <p>Seems simple right? When I click the imageButton it does absolutely nothing!</p>
  <p>Please help.</p>
  <p>EDIT: LOGCAT After selecting a spinner item which gets us to this activity .sheet</p>
  <pre><code>&gt; 03-16 06:15:38.977:
  &gt; INFO/ActivityManager(563): Displayed
  &gt; activity com.talismancs/.sheet: 766 ms
  &gt; 03-16 06:15:42.907:
  &gt; DEBUG/dalvikvm(1735): GC freed 448
  &gt; objects / 39160 bytes in 58ms 03-16
  &gt; 06:15:43.847:
  &gt; INFO/NotificationService(563):
  &gt; enqueueToast pkg=com.talismancs
  &gt; callback=android.app.ITransientNotification$Stub$Proxy@43773720
  &gt; duration=1  03-16 06:15:43.877:
  &gt; INFO/ActivityManager(563): Starting
  &gt; activity: Intent {
  &gt; comp={com.talismancs/com.talismancs.sheet} (has extras) }  03-16 06:15:43.917:
  &gt; WARN/InputManagerService(563): Window
  &gt; already focused, ignoring focus gain
  &gt; of:
  &gt; com.android.internal.view.IInputMethodClient$Stub$Proxy@43718320
  &gt; 03-16 06:15:44.527:
  &gt; INFO/ActivityManager(563): Displayed
  &gt; activity com.talismancs/.sheet: 646 ms
  </code></pre>
  <p>After that is does nothing when I click the imageButton</p>