Global variable in android
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1944656/android-global-variable">Android global variable</a>  </p>
</blockquote>



<p>I am working with an Android project. I have two activities. I am designing a file uploader. 
The first activity is to choose a file. The second one is used to uploading the selected file. </p>

<p>How can i make a global variable So the file path selected in the first activity can be used by the second activity.</p>

<p>Is SharedPreference suitable for this or what's the best solution for this?</p>
