Guest User

Untitled

a guest
Nov 16th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. override fun onCreate(savedInstanceState: Bundle?) {
  2. super.onCreate(savedInstanceState)
  3. var mAuth = FirebaseAuth.getInstance().currentUser
  4.  
  5. if(mAuth!=null){
  6. intent = Intent(this, EjemploActivity::class.java)
  7. startActivity(intent)
  8. }
  9. }
  10.  
  11. @Override
  12. protected void onCreate(Bundle savedInstanceState) {
  13. super.onCreate(savedInstanceState);
  14. setContentView(R.layout.activity_main2);
  15. FirebaseUser mAuth = FirebaseAuth.getInstance().getCurrentUser();
  16. if(mAuth!=null){
  17. startActivity(new Intent(getApplicationContext(),EjemploActivity.class));
  18. }
  19. }
Add Comment
Please, Sign In to add comment