title: How to pass Seek Bar variables between activities?
body: <p>I'm currently trying to pass the current value of a seek bar between activities in order to change the size of text in another activity. However I'm having difficulties doing this.</p>
  
  <pre><code>secondActivityButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Intent startIntent = new Intent(getApplicationContext(), SecondActivity.class);
              startIntent.putExtra("com.example.willh.seekbar.something", seekBarValue);
              startActivity(startIntent);
          }
      });
  </code></pre>
  
  <p>I'm able to pass static variables between the activites, e.g. creating an int named seekBarValue with the value of 5, however I need the variable to be dynamic.</p>
  
  <pre><code>slidingBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
          int seekBarValue = 0;
  
          public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
              seekBarValue = progress;
          }
  
          public void onStartTrackingTouch(SeekBar seekBar) {
              // TODO Auto-generated method stub
          }
  
          public void onStopTrackingTouch(SeekBar seekBar) {
              TextView resultText = (TextView) findViewById(R.id.resultText);
              resultText.setText(seekBarValue + "");
              resultText.setTextSize(seekBarValue);
          }
      });
  </code></pre>
  
  <p>Any help would be greatly appreciated, thanks.</p>