Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainActivity extends AppCompatActivity {
- private FirebaseAuth mAuth;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
- setSupportActionBar(toolbar);
- getSupportActionBar().setDisplayShowTitleEnabled(false);
- mAuth = FirebaseAuth.getInstance();
- String s = mAuth.getCurrentUser().getUid();
- TextView tV = (TextView) findViewById(R.id.uID);
- tV.setText(s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement