title: Getting Extra String value from a previous Activity inside an onClick method
body: <p>my Class implements an onClickListener, so I did this:</p>
  
  <p>onCreate:</p>
  
  <pre><code>   final ImageButton btn_audio = (ImageButton)findViewById(R.id.btn_tool_audio);
                      btn_audio.setOnClickListener(this);
  </code></pre>
  
  <p>onClick method:</p>
  
  <pre><code>@Override
      public void onClick(View v) {
          switch(v.getId()){
            case R.id.btn_tool_audio:
                Bundle extras = getIntent().getExtras();
            String audio_text_url = extras.getString("audio_text_url");
                Intent launchAudio= new Intent(Intent.ACTION_VIEW, audio_text_url);
                startActivity(launchAudio);
                 break;
  </code></pre>
  
  <p>but then the value of the String is 'null', the question is how am I able to get its value from the previous activity inside an onClick method?</p>
  
  <p>FYI I don't have any problem in getting the value when I call the extra inside onCreate</p>