Welcome to Zuunsiam-Technical

Monday, June 8, 2020

LOGIN With Verification Email

Perfact Login With Verification Email





// Desian Layout  “ Main.activity.xml “
a. Layout Linear V ( Iinear 1), Layout Propertes “ width : match_parent, height : match_parent, padding : 0.
b.  Layout Linear H ( Iinear 2), Layout Propertes “ width : match_parent, height : 50dp, padding : 8.
c.  Asungah Layout Linear H ( Iinear 2),Guandi Imageview1 & TextView1


//Bawldi activity Thak “ login.xml “ form yaitu from login, daftar & reset password

 // Linear Login
a.       Linaer ( H ) Layout  :  “ width : match_parent, height : match_parent, padding : 0, gravity : center _horisontal.
b.      Linaer ( V ) Login : “ width : match_parent, height : match_parent, padding : 0, gravity : center _horisontal.
c.       Linaer ( V ) viewlogin : “ width : 300, height : warp content, padding all: 20, gravity : center _horisontal.
d.      Hihsungah Guandi :
-          5 bawl linear ( H )
-          Textview : 4X
-          Edittext : 2X
-          Imageview : 2X
-          Button : 1

                                                                                           
//Linaer  daftar ( H )  :  “ width : match_parent, height : match_parent, padding : 0, gravity : center _horisontal.
a.       Linaer ( V ) viewdaftar : “ width : 300, height : warp content, padding all: 20, gravity : center _horisontal.
b.      Hi sungah guandi :
-          3 Bawldi linear ( H )
-          Textview1
-          Edittext : 3X
-          Imageview : 3X
-          Button 1


// Linaer  reset ( H )  :  “ width : match_parent, height : match_parent, padding : 0, gravity : center _horisontal.
c.       Linaer ( V ) viewreset : “ width : 300, height : warp content, padding all: 20, gravity : center _horisontal.
d.      Hi sungah bawldi :
-          1 buah linear ( H )
-          Textview1
-          Edittext : 1
-          Imageview : 1X
-          Button 1




// Add bawldi component :
-          Intent
-          Sharedpreferences
-          Firebase auth, &
-          Dialog

// mainactivity.xml, Event, On Activity create,

mainactivity.xml  login.xml
-      On activity create

>>> OnCreate


//Code Gradient Drawable
FirebaseAuth Authentification = FirebaseAuth.getInstance(); com.google.firebase.auth.FirebaseUser user = auth.getCurrentUser(); user.sendEmailVerification().addOnCompleteListener (new OnCompleteListener<Void>() { @Override public void onComplete(Task task) { if (task.isSuccessful()) {

} else {


}

}});


// Selanjutnya Masukan Component Firebase Auth
Masuk di semua bagian component firebase auth tersebut dan ikuti gambar di bawah ini :

// Firebase Auth " On CreateUserComplete "

Code :
FirebaseAuth auth = FirebaseAuth.getInstance();

com.google.firebase.auth.FirebaseUser user = auth.getCurrentUser();


if (user.isEmailVerified()) {


} else {


}

Kemudian di
// Firebase Auth " On SigninUserComplete ", Ikuti langkahnya sesuai gambar dibawah :
Code :

//Firebase Auth Sign in User Completed


Hih Component Reset Password:


- Login
- Daftar
- Reset Password
Limsunga bangin na hih in.
Share:

0 comments:

Post a Comment

Translate

Blogger templates