title: Activity does not call onActivityResult
body: <p>the program doesnt call onActivityResult, ive been in many post as this but i cant make it work.</p>
  
  <p>Im using Android 3.0 Emulator.</p>
  
  <p>this is the code of GameScreen.java</p>
  
  <pre><code>@Override 
  public void onActivityResult(int requestCode, int resultCode, Intent data) {      
    super.onActivityResult(requestCode, resultCode, data); 
    switch(requestCode) { 
      case 0: { 
        if (resultCode == Activity.RESULT_OK) {    
            String newText = data.getStringExtra("isRunning");          
            // TODO Update your TextView.
            isRunning = true;
        } 
        break; 
      } 
    } 
  }
   public void pause(){
      clickListener = new OnClickListener() {         
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub              
              pause.setImageResource(R.drawable.pauseafter);
              isRunning = false;
              Intent intent = new Intent(Gamescreen.this, Shop.class);                  
              startActivityForResult(intent, 0);
          }
      };
  }
  </code></pre>
  
  <p>this is the code Shop.java</p>
  
  <pre><code>public void returnButton(){
      resume.setOnClickListener(new OnClickListener() {           
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              Intent intent = new Intent();
              setResult(Activity.RESULT_OK,intent);
              finish();
          }
      });
  }   
  </code></pre>