title: Android Intent.FLAG_ACTIVITY_SINGLE_TOP AND Intent.FLAG_ACTIVITY_CLEAR_TOP
body: <p>I have an app that I have running a media player and I want to resume the activity from my apps home activity.</p>
  
  <p>I can successfully do this by adding the following flags to the startActivity Call:</p>
  
  <pre><code>myIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  </code></pre>
  
  <p>I am worried that this is not an ideal way to do things since it took me a long time to find it. It made me think that no one uses it very much.</p>
  
  <p>Are there any pitfalls to using this method?</p>