title: How to separate two different user in firebase android app?
body: <p>I have an application with two different types of users one as Teacher and the Second a normal user. if a normal member logs in, he will go to <code>normal_memberActivity</code> and if he's a Teacher member, he'll go to <code>Teacher_memberActivity</code>. How do I do this in loginActivity?</p>
  
  <p>My Firebase structure:</p>
  
  <p><img src="https://i.stack.imgur.com/fKCGr.png" alt="1"></p>
  
  <p>this is database firebase rules</p>
  
  <pre><code> { 
     "rules": {
    ".read": true,
  
    ".write":true}
  
  }
  </code></pre>