title: Passing values from a fragment to another activity
body: <p>I have a DialogFragment which has a listView as container. I've set up OnItemClickListener on the listView.</p>
  
  <p>How can I get the value when the user touchs an item and pass it to another activity then  store that value into a variable? I need to set a count down timer depending on which  item will be selected. Actually can only display simple toast message with the item position.</p>
  
  <p>As a note, the activity to which the value will be passed is not the fragment activity.</p>
  
  <p>I was thinking about Bundle but have not having much knowledge on programming is a pain even after reading documentation on Google site. </p>
  
  <p>on the MainActivy, here is how I set the timer:</p>
  
  <pre><code>new CountDownTimer(30000, 1000) {
  
          public void onTick(long millisUntilFinished) {
              String elapsedTime = String.valueOf(millisUntilFinished / 1000);
              timer.setText(elapsedTime);
          }
          public void onFinish() {
              timer.setText(R.string.text);
          }
      }.start();
  }
  </code></pre>
  
  <p>Exemple:</p>
  
  <p>If user touches item 1 then the timer gets value 15 minutes and so on...</p>
  
  <p>Please guide me, thank you.</p>