Android OTP (Mobile) Verification Using Firebase | Part 1/2 | Layout Setup | Android Studio
ฝัง
- เผยแพร่เมื่อ 29 ก.ย. 2024
- Android OTP (Mobile) Verification Using Firebase | Part 1/2 | Layout Setup | Android Studio
#androidprogramming #androiddevelopment #androidtutorial
In this tutorial, we will implement the facility to verify OTP (mobile) using firebase. In part 1, we will set up our layout and controls which includes,
1) Send OTP Screen Layout Design
2) Verify OTP Screen Layout Design
3) Setup Input Controls
Download Icons:
1) icons8.com/ico...
2) icons8.com/ico...
For more exciting android tutorials, please subscribe to my TH-cam channel and hit the bell icon for notifications.
Instagram:
/ chigs_kachhadiya
android otp verification, otp verification android, firebase otp verification, otp verification firebase, android otp verification using firebase, chirag kachhadiya, kachhadiya chirag android firebase otp verification, android mobile verification, android phone verification using firebase, android phone verification, android mobile verification using firebase
Hey Sir Love you a lot❤️
Sir waiting for part 2 please upload part 2 as soon as possible 😘💕
Working on part 2, expect it by tomorrow.
Can you give voice training?
Thanks👍
Can anyone know how to add countdown for resend the otp code like (0.59second) ?
if(!s.toString().trim().isEmpty() )
in that line cannot resolve toString () is showing ..
What to do?
instead of s you can write your character sequence object
Is the code available on github?
21:09 Is it an exclamation mark or 1?
if(s.toString().trim().length() != 0){
inputCode2.requestFocus();
}
3:13 how is the style.xml is created before???
Please show code for me 🙁
Always Recommend your videos ♥. Please upload MVVM series.
Sure, on my list.
@@chiragkachhadiya Thank you very much bro ♥ ♥ ♥
@@chiragkachhadiya hello sir are u there
Bro can you share the code with us?
21:10 was that "!s" ??? or ls?
I also stuck here
@@rjzim2506 its !
App dont run, what to do
@@rjzim2506 check firebase documentation about Phone Authentication.
I complete just 1st part,
Dear Sir,
How to send Serializable data from edit text in to MySQL database via Volley Lib.
Brother will they ask Money for each OTP They receive from us. ( Developer )
Nope
What that language kotla
21:15
Line 37 is it is
please help me, error snippet inputCode1,2,3,4,5. line error "if (I s.toString (). trim (). isEmpty ())". let me ask what character "I" is
Can you give me that code
Yes i have same problem
Bro it's "!" sign try this and it should work
@@PerplexedCoder when i click on Get OTP then it goes to the home screen and nothing happens.
Also--> buttonGetOTP.setOnClickListener(new View.OnClickListener()
in the above code its says anonymous class and argument seems to be depreciated(not highlighted or appears in grey instead of color)
please reply
@@sujalsingh2498 opsi, I didn't get that :/ you can try rebuilding the project (although I assume you must have done it) try changing the depreciated part with some other instance..idk much thought 🤷
Hello bro, what word for minutes 21.09?
Is l , i or what? Thanks
I also Don't understand this
Ignore all. Type "length()==1" replace of "isempty()"
21:09 line 37 can anyone retype and send please i didn't get what is taken before "s"
Simple and subtle. Waiting for part 2.
SIr, Source code de dijye
Sir plz tell how to move from one otp edit text to previous by pressing back space
hi Chirag Kachhadiya , can u help me with a problem when i run this?
Now, what if I want to AutoFill this?
Bro resource error coming
About 21:09 !s
If you notice line 36 says "Charsequence s" so when going to line 37 just replace his 's' with whatever your line 36 says in my case "Charsequence charsequence" hence line 37 "!charsequence"
good thing I read this, thank you.
Brother once again a doubt, can i see the phone numbers which is registered if yes please tell how or if you wish make a video on it please reply...
Sir in this we don't need any bulk sms gateway ?
Hello sir, can we make video player app like MxPlayer. Show video folder by folder in recyclerView. Please🙏
After running it gives an error sir
without firebase it is possible another way login with phone number verification?
Yes, you can use your own back end for that and you need to purchase sms gateway and use it's APIs to send OTP.
MOST IMPORTANT THING
🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
AGAR KISI NE YEH SAB STEP COMPLETE KIYA HAI PHIR JAB VOH BANDA APP OPEN KRNE KI KOSIS KRTA HO AUR APP RESPOND NA KRE TO MUJHE BATAYE
bro , apna whatsapp no de do please. if in case...
sir please make tutorial on android
very nice video.... very nice... thank you
Are you available for freelancing ?
awesome tutorials
Hi,
I am trying to do something simillar. I have six edittexts. While deleting text from edittext I want focus to be shifted to previous edittext. It does not work as intended and focus jumps to the previous+1 edittext instead of where it should be. Please help me if you have any suggestion to fix this.
If you did eactly as shown in the video, use an ELSE block after the IF like this
etInputCode2.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence s, int i, int i1, int i2) {
if (!s.toString().trim().isEmpty()){
etInputCode3.requestFocus();
}
// add an else block like this here, in every edittext
else {
etInputCode1.requestFocus();
//
}
}
@Override
public void afterTextChanged(Editable editable) {
}
});
In this video at the time of 21:09, what you wrote in line number 37 inside if condition ?
if(!s.toString().trim().isEmpty())
@@amrutakashikar8835 ok thanks. It's working now
@@amrutakashikar8835 Thanks you
Getting error caused by Inflate exception in , and NullPointerException.
Please give solution.
It's "View" not "view", i mean capital 'V' in layout.
@@chiragkachhadiya Okk thanks, You solved my problem , Now it's working fine🙂
OTP received but it back register activity
its !(not)
when i click on Get OTP then it goes to the home screen and nothing happens.
Also--> buttonGetOTP.setOnClickListener(new View.OnClickListener()
in the above code its says anonymous class and argument seems to be depreciated(not highlighted or appears in grey instead of color)
do u know why?
@@sujalsingh2498 can you sent your code I'll test for you?
May I ask why the emulator is OPPO
It's not emulator, it's a physical device oppo.
Check your discription
I've added the download links, please check video description or refresh the video page or screen.
Icon link not present
Download links added in the description.
Very useful tutorial..I have been copying the code from the video for 4 hrs..in the end, couldn't run due to scroll layout can only have one child error.I have checked with StackOverflow but no success.if you can provide the source code would be really helpful..Happy New Year
is it working now?
Hi Chirag.
My application doesnot work normally. After pressing OTP code, the app doesnot start Main activity.
When I run debug the app works well. I am new and I am not familar with Android studio debugging, I just see app switch to MainActivity after I step out the Looper class.
If you have any idea please help me :)
Thank you very much
same problem.
did u find solution.?
I forgot, seem like I didn't solve that problem. Sorry
@@tuyenvokhac7943 Np brother
Hallo Admin, please make the Course Education application.
Like Learning Java, Learning Kotlin made by ApkZube.
Or another example: Master Coding by Leb Developer, and Solo Learn by Solo Learn.
I really want to make an application to learn programming languages.
😁