title: How to clear arguments in Fragment?
body: <p>I have an <code>AudioPlayerFragment</code> to which I pass some url with setArguments().</p>
  
  <p>If I have an <code>url</code> key in the <code>getArguments()</code> of my instance of <code>AudioPlayerFragment</code>, I start a service that plays the audio stream. If there was already a stream playing, I stop it and start it again with the new stream.</p>
  
  <p>If there is no arguments, I do nothing.</p>
  
  <p>My problem is that the arguments are kept with the instance, so when I get back to it, <code>getArguments()</code> returns the latest arguments set, if no new have been set.</p>
  
  <p>So after reading them, I try to set the arguments to null with</p>
  
  <pre><code>setArguments(null);
  </code></pre>
  
  <p>But I get</p>
  
  <pre><code>Java.lang.IllegalStateException: fragment already active
  </code></pre>
  
  <p>How can I clear the arguments then?</p>