title: Set activity launch mode programmatically
body: <p>I need to call activity with different <code>launchMode</code> according to my app state. In one case it should be <code>singleInstance</code>, in other - <code>singleTask</code>. I know how to set <code>launchMode</code> in <strong>AndroidManifest</strong>, but since it should be dynamic property I have to do it from code. I thought, that I can add some specific flag to intent, before starting activity, but I found only <code>singleTop</code> flag. So is any way to solve this issue? 
  Thanks </p>