<file_sep>package com.example.login;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

import com.google.firebase.FirebaseApp;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;

public class profileActivity extends AppCompatActivity {
    private TextView email;
    FirebaseAuth auth;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_profile);
        FirebaseApp.initializeApp(profileActivity.this);
        auth=FirebaseAuth.getInstance();
        FirebaseUser user=auth.getCurrentUser();
        email=findViewById(R.id.useremail);
        email.setText("welcome"+user.getEmail());
    }
}
