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

ความคิดเห็น • 94

  • @riteshhon2442
    @riteshhon2442 4 ปีที่แล้ว +2

    Hey Sir Love you a lot❤️
    Sir waiting for part 2 please upload part 2 as soon as possible 😘💕

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว +1

      Working on part 2, expect it by tomorrow.

  • @rezaparvar8069
    @rezaparvar8069 3 ปีที่แล้ว +4

    Can you give voice training?

  • @harshitsrivastava9903
    @harshitsrivastava9903 3 ปีที่แล้ว

    Thanks👍

  • @Vaithes
    @Vaithes 2 ปีที่แล้ว +1

    Can anyone know how to add countdown for resend the otp code like (0.59second) ?

  • @shwetashilwant2990
    @shwetashilwant2990 3 ปีที่แล้ว +3

    if(!s.toString().trim().isEmpty() )
    in that line cannot resolve toString () is showing ..
    What to do?

    • @dataanalyst6195
      @dataanalyst6195 ปีที่แล้ว

      instead of s you can write your character sequence object

  • @iLochBolt
    @iLochBolt 4 ปีที่แล้ว +2

    Is the code available on github?

  • @isweat5571
    @isweat5571 3 ปีที่แล้ว +3

    21:09 Is it an exclamation mark or 1?

    • @21flame72
      @21flame72 6 หลายเดือนก่อน

      if(s.toString().trim().length() != 0){
      inputCode2.requestFocus();
      }

  • @jai-niranjan
    @jai-niranjan 3 ปีที่แล้ว +1

    3:13 how is the style.xml is created before???

  • @luongcuong9655
    @luongcuong9655 3 ปีที่แล้ว +1

    Please show code for me 🙁

  • @codeupgraded6208
    @codeupgraded6208 4 ปีที่แล้ว +3

    Always Recommend your videos ♥. Please upload MVVM series.

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว +1

      Sure, on my list.

    • @codeupgraded6208
      @codeupgraded6208 4 ปีที่แล้ว

      @@chiragkachhadiya Thank you very much bro ♥ ♥ ♥

    • @AvengerGamingYT.
      @AvengerGamingYT. 2 ปีที่แล้ว

      @@chiragkachhadiya hello sir are u there

  • @riccoc.6507
    @riccoc.6507 7 หลายเดือนก่อน

    Bro can you share the code with us?

  • @potatofu5611
    @potatofu5611 3 ปีที่แล้ว +2

    21:10 was that "!s" ??? or ls?

    • @rjzim2506
      @rjzim2506 3 ปีที่แล้ว

      I also stuck here

    • @potatofu5611
      @potatofu5611 3 ปีที่แล้ว

      @@rjzim2506 its !

    • @rjzim2506
      @rjzim2506 3 ปีที่แล้ว

      App dont run, what to do

    • @potatofu5611
      @potatofu5611 3 ปีที่แล้ว

      @@rjzim2506 check firebase documentation about Phone Authentication.

    • @rjzim2506
      @rjzim2506 3 ปีที่แล้ว

      I complete just 1st part,

  • @sunilmahur9024
    @sunilmahur9024 3 ปีที่แล้ว +1

    Dear Sir,
    How to send Serializable data from edit text in to MySQL database via Volley Lib.

  • @janarthan_d
    @janarthan_d 3 ปีที่แล้ว +1

    Brother will they ask Money for each OTP They receive from us. ( Developer )

  • @hitechpreethi9708
    @hitechpreethi9708 3 ปีที่แล้ว +1

    What that language kotla

  • @dishan9647
    @dishan9647 2 ปีที่แล้ว +1

    21:15
    Line 37 is it is

  • @nnhaifree
    @nnhaifree 3 ปีที่แล้ว +1

    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

    • @nnhaifree
      @nnhaifree 3 ปีที่แล้ว

      Can you give me that code

    • @-LutfiWirananda
      @-LutfiWirananda 3 ปีที่แล้ว

      Yes i have same problem

    • @PerplexedCoder
      @PerplexedCoder 3 ปีที่แล้ว

      Bro it's "!" sign try this and it should work

    • @sujalsingh2498
      @sujalsingh2498 3 ปีที่แล้ว +1

      @@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

    • @PerplexedCoder
      @PerplexedCoder 3 ปีที่แล้ว

      @@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 🤷

  • @-LutfiWirananda
    @-LutfiWirananda 3 ปีที่แล้ว +1

    Hello bro, what word for minutes 21.09?
    Is l , i or what? Thanks

    • @rjzim2506
      @rjzim2506 3 ปีที่แล้ว

      I also Don't understand this

    • @priyadarsak
      @priyadarsak 3 ปีที่แล้ว

      Ignore all. Type "length()==1" replace of "isempty()"

  • @48_tycm-i_girishpatil44
    @48_tycm-i_girishpatil44 ปีที่แล้ว

    21:09 line 37 can anyone retype and send please i didn't get what is taken before "s"

  • @SaurabhKumar-bv9gs
    @SaurabhKumar-bv9gs 4 ปีที่แล้ว +2

    Simple and subtle. Waiting for part 2.

  • @arbindsharma1423
    @arbindsharma1423 3 ปีที่แล้ว +1

    SIr, Source code de dijye

  • @anikettyagi4264
    @anikettyagi4264 2 ปีที่แล้ว

    Sir plz tell how to move from one otp edit text to previous by pressing back space

  • @lironcohen7153
    @lironcohen7153 2 ปีที่แล้ว

    hi Chirag Kachhadiya , can u help me with a problem when i run this?

  • @EyeXD
    @EyeXD 2 ปีที่แล้ว

    Now, what if I want to AutoFill this?

  • @nijanthanc3046
    @nijanthanc3046 ปีที่แล้ว

    Bro resource error coming

  • @Shawn.o_
    @Shawn.o_ 2 ปีที่แล้ว +3

    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"

  • @janarthan_d
    @janarthan_d 3 ปีที่แล้ว

    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...

  • @SarkarBLR
    @SarkarBLR 3 ปีที่แล้ว

    Sir in this we don't need any bulk sms gateway ?

  • @rupeshmandal1
    @rupeshmandal1 4 ปีที่แล้ว

    Hello sir, can we make video player app like MxPlayer. Show video folder by folder in recyclerView. Please🙏

  • @pawantiwari1661
    @pawantiwari1661 3 ปีที่แล้ว

    After running it gives an error sir

  • @NareshKumar-uc3uz
    @NareshKumar-uc3uz 4 ปีที่แล้ว

    without firebase it is possible another way login with phone number verification?

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว +1

      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.

  • @SmartIndian412001
    @SmartIndian412001 3 ปีที่แล้ว

    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

    • @abondutta
      @abondutta 3 ปีที่แล้ว

      bro , apna whatsapp no de do please. if in case...

  • @niteshpatel6112
    @niteshpatel6112 4 ปีที่แล้ว

    sir please make tutorial on android

  • @xoxo
    @xoxo 3 ปีที่แล้ว

    very nice video.... very nice... thank you

  • @NARANIYA_Vlog
    @NARANIYA_Vlog 3 ปีที่แล้ว

    Are you available for freelancing ?

  • @syuharto7961
    @syuharto7961 ปีที่แล้ว

    awesome tutorials

  • @techinnovatorsapp1584
    @techinnovatorsapp1584 2 ปีที่แล้ว

    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.

    • @EyeXD
      @EyeXD 2 ปีที่แล้ว

      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) {
      }
      });

  • @priyadarsak
    @priyadarsak 3 ปีที่แล้ว

    In this video at the time of 21:09, what you wrote in line number 37 inside if condition ?

    • @amrutakashikar8835
      @amrutakashikar8835 3 ปีที่แล้ว +2

      if(!s.toString().trim().isEmpty())

    • @priyadarsak
      @priyadarsak 3 ปีที่แล้ว +1

      @@amrutakashikar8835 ok thanks. It's working now

    • @diemmdung7427
      @diemmdung7427 3 ปีที่แล้ว +1

      @@amrutakashikar8835 Thanks you

  • @technotrak7077
    @technotrak7077 4 ปีที่แล้ว

    Getting error caused by Inflate exception in , and NullPointerException.
    Please give solution.

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว +1

      It's "View" not "view", i mean capital 'V' in layout.

    • @technotrak7077
      @technotrak7077 4 ปีที่แล้ว

      @@chiragkachhadiya Okk thanks, You solved my problem , Now it's working fine🙂

  • @afreensworld786
    @afreensworld786 3 ปีที่แล้ว

    OTP received but it back register activity

    • @sujalsingh2498
      @sujalsingh2498 3 ปีที่แล้ว

      its !(not)

    • @sujalsingh2498
      @sujalsingh2498 3 ปีที่แล้ว

      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?

    • @afreensworld786
      @afreensworld786 3 ปีที่แล้ว

      @@sujalsingh2498 can you sent your code I'll test for you?

  • @StorySonger
    @StorySonger 4 ปีที่แล้ว

    May I ask why the emulator is OPPO

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว

      It's not emulator, it's a physical device oppo.

  • @bangashkhan2211
    @bangashkhan2211 4 ปีที่แล้ว

    Check your discription

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว

      I've added the download links, please check video description or refresh the video page or screen.

  • @bangashkhan2211
    @bangashkhan2211 4 ปีที่แล้ว

    Icon link not present

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว

      Download links added in the description.

  • @kannan3801
    @kannan3801 3 ปีที่แล้ว +1

    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

  • @tuyenvokhac7943
    @tuyenvokhac7943 3 ปีที่แล้ว +1

    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

    • @sujalsingh2498
      @sujalsingh2498 3 ปีที่แล้ว

      same problem.
      did u find solution.?

    • @tuyenvokhac7943
      @tuyenvokhac7943 3 ปีที่แล้ว

      I forgot, seem like I didn't solve that problem. Sorry

    • @sujalsingh2498
      @sujalsingh2498 3 ปีที่แล้ว

      @@tuyenvokhac7943 Np brother

  • @DevAccount_Alpha
    @DevAccount_Alpha 4 ปีที่แล้ว

    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.
    😁