title: How to connect activity_main layout file to a non Main activity
body: <p>I'm trying to connect activity_main layout file to a google activity so as to allow the Speak method accessible to the activity_main file, how can it be done?</p>
  
  <pre><code>class googleSpeech : AppCompatActivity(), OnInitListener{   
      private var tts : TextToSpeech? = null;   
      private var speechBtn : Button? = null;    
      private var txt : EditText? = null;
  
      public fun spk(){    
          val Text = txt!!.text.toString()    
          tts!!.speak(Text, TextToSpeech.QUEUE_FLUSH, null, "")    
      }
  }
  </code></pre>