title: Passing SharedPreferences to doInBackground()
body: <p>I am trying to pass the SharedPreferences prefs, as an argument to doInBackground function in AsyncTask. I am already passing a string(url) to it, so I would need to pass the prefs also as a string. Can I simply use, prefs.toString() to convert it into string?</p>
  
  <p>This is where I set the prefs:</p>
  
  <pre><code>if (prefs.getBoolean("firstrun", true)) {
              prefString = prefs.toString();
              prefs.edit().putBoolean("firstrun", false).commit();
          }
  </code></pre>