title: In Kotlin how do I open a link in new Window
body: <p>I am a tyro in <code>Kotlin</code> but I have a good Knowledge of <code>Android</code> and <code>Core java</code>. I am stuck on one condition while developing an android app via the <code>Kotlin</code> assistance.</p>
  
  <p>I want that when user clicks a link present on the <code>pdf</code> document; the link should be opened on a browser (<strong>and if browser is opened then the link should open on the <em>new window</em> not new tab of the same window</strong> ).</p>
  
  <p>I have achieved much of my objective but I didn't found out <strong>how to open a link in the new Window if the browser is open already?</strong></p>
  
  <p>I have tried the code below(when the link on the <code>pdf</code> is clicked then it redirects to the below function call):</p>
  
  <pre><code>fun web_page_open(urls: String) { // for more than one url
      val uris = Uri.parse(urls)
      val intents = Intent(Intent.ACTION_VIEW, uris)
      startActivity(intents)
  } 
  </code></pre>
  
  <p>I have tried my level-best to explain my problem and also searched a lot(on <code>github</code> as well) but all my efforts went in vein. </p>
  
  <p>Any help is warmly welcomed.</p>
  
  <p><strong>EDIT</strong>: Let's consider an instance if the user has already opened the default browser (say ABZfox) then when the link inside the <code>pdf</code>(or a doc) is clicked then the new Window of <strong>ABZfox</strong> opens instead of the same window in which the user was previously working. I'm sure the question makes some sense now!!!  </p>