title: Kotlin: open new Activity inside of a Fragment
body: <p>How can I open a new Activity inside of a fragment when using a button?</p>
  <p>I tried this</p>
  <pre><code>override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
      super.onViewCreated(view, savedInstanceState)
  
      LogOut_btn.setOnClickListener {
          //FirebaseAuth.getInstance().signOut()
          val intent = Intent (this, Main::class.java)
          startActivity(intent)            
      }
  }
  </code></pre>
  <blockquote>
  <p>val intent = Intent doesn't seem to work in a fragment.</p>
  </blockquote>
  <p>Any idea how I can start a new activity inside a fragment?</p>