Login and Register Form using SQLite Database in Android Studio | login registration android studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • In this tutorial, a login and register app using SQLite Database is created in Android studio. login and register android studio SQLite. login and register android studio SQLite in Hindi. login android studio SQLite. simple login app android studio. log in and register in android studio using SQLite. login and register app in android studio. login register android studio SQLite
    For source code 👇⚡👍👇⚡
    allcodingtutor...

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

  • @Funfacts8095
    @Funfacts8095 4 ปีที่แล้ว +41

    Great!! works like a charm... thanks

  • @doe.prodzz
    @doe.prodzz 2 ปีที่แล้ว +2

    A very hands-on, clear and easy tutorial

  • @ayeshaali9600
    @ayeshaali9600 4 หลายเดือนก่อน

    Bestest tutorial of android studio program. Believe me this is the first program in my whole semester which runs properly and give output.thank u so much❤☺️may God bless you with more success and knowledge 🤗💕

  • @skouweee
    @skouweee 9 หลายเดือนก่อน +1

    I LOVE U BOY. U just saved my ass. i got a task to create mobile app with registration and only your video the best on this topic cuz i dont know how to work with database ( its my weakness) :P

    • @codingtutorials1857
      @codingtutorials1857  9 หลายเดือนก่อน

      I am really happy that it helped you. Thanks

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

    I tried creating one more table n inserting values from another activity in same DBHelper. But it says insertion failed no such Table. What to do?? How to create more tables in same database??

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

    Gracias aunque el video es en ingles y yo soy español lo entendí muy bien

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

    thank you so much

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

    Can you make a video on keeping the user logged in even after he reopens the app..

  • @mr.lootos8722
    @mr.lootos8722 3 ปีที่แล้ว

    Amazing 🤩🤩🤩

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

    link of source code not working

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

    It is not working for me , my data is not getting inserted, it says registration failed, please help...

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

    Source code link is not working

  • @user-ri4nm3yp1w
    @user-ri4nm3yp1w 3 ปีที่แล้ว +4

    i cant open my database it says error saving file... can u help me?

  • @chanjeongpark779
    @chanjeongpark779 2 ปีที่แล้ว +5

    Great! Thank for your kind and detailed explanation

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

    In my program.. values are added in table but in dbbrowser my table is not showing..can someone help me with this problem

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

    Thank you ooo much SIR!!

  • @markb.samson1410
    @markb.samson1410 3 ปีที่แล้ว +5

    YOU DID A GREAT TUTORIAL, SIR! YOU SAVE MY LIFE!!!! THANK YOU!!

  • @hughman5747
    @hughman5747 7 หลายเดือนก่อน

    App keeps crashing? Table not found?
    Go to database helper java file, change version number of constructor from 1 to 2 to refresh.

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

    when i restarted the app the user name and password is not working anymore. It is really like that? when you close the app all the data you insert will be lost?

  • @jerry-danielopoku-boateng9515
    @jerry-danielopoku-boateng9515 5 หลายเดือนก่อน

    Please I didn't see what you did in the 'activity_home.xml' file.

  • @PAVANKUMAR-fu7pb
    @PAVANKUMAR-fu7pb 3 ปีที่แล้ว +7

    It just worked like magic ! Thank you so much for such a quality and detailed video ❤

  • @HANIOmar-cl1ho
    @HANIOmar-cl1ho ปีที่แล้ว

    I encountered a problem with this project, can I contact you?

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

    Great tutorial, saved me hours!

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

    Can u help me, it crashed, I folowed every step, pls help me

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

    Very helpful video, but there is a little error when creating a empty project the default package in MainActivity.java is: com.example."name of the app" not
    -package com.learnandroid.loginsqlite; dont know how this emerged but i lost a couple of hours to find it out as i was copying all the code from the web page in the link.. and non of the hint in stackoverflow or else helped :D

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

    First of all, Thanks for the tutorial
    secondly=) I am facing a problem Sir, namely:
    when i press the sign in button, after registration complete to login in with pre-created user, the APP crashes and closed... i literally followed every detail with you.. if there were any advises, i will be thankful.

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

      Please look the error log when it crashes . Mostly it some undefined variables . Let me know the error

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

      @@codingtutorials1857 i have the same error too

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

      @@codingtutorials1857 heyy i have the same problem
      please help
      This is the error that occured in my log
      2022-06-21 20:43:00.383 4528-4528/com.example.timelineapp E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.example.timelineapp, PID: 4528
      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.timelineapp/com.example.timelineapp.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
      at android.app.ActivityThread.-wrap12(ActivityThread.java)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
      at android.os.Handler.dispatchMessage(Handler.java:102)
      at android.os.Looper.loop(Looper.java:154)
      at android.app.ActivityThread.main(ActivityThread.java:6077)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
      at com.example.timelineapp.LoginActivity.onCreate(LoginActivity.java:22)
      at android.app.Activity.performCreate(Activity.java:6662)
      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
      at android.app.ActivityThread.-wrap12(ActivityThread.java)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
      at android.os.Handler.dispatchMessage(Handler.java:102)
      at android.os.Looper.loop(Looper.java:154)
      at android.app.ActivityThread.main(ActivityThread.java:6077)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)

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

      @@codingtutorials1857 hey i found out the solution thankyou very much for the video it helped me alot

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

      @@utsargaadhikari7670 what's the solution please help

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

    I'm getting a null pointer Exception for this code, could you suggest a solution for that?

  • @codestudiobygonationgetter3446
    @codestudiobygonationgetter3446 11 หลายเดือนก่อน

    From where i will be able to access this data of clients ?

  • @DG133-s5f
    @DG133-s5f ปีที่แล้ว +2

    Hallo, toll erklärt. great explained
    Danke für die Arbeit.Thanks for Your work.
    Eine Anmerkung: Die Eingabefelder für Password auf Input-Type textpassword setzen. One remark: the fields with the password can be set as input type: textpassword.
    Kind regards
    Leachim

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

    Kindly teach me one simple app creation and ur screen is not clearly visible

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

    while executing it shows error as setContentView(R.layout.activity_main); package R not found..what should i do

  • @angelomfilinge8662
    @angelomfilinge8662 หลายเดือนก่อน

    great! may I have source code

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

    Alright so the content here is great!! It surely did help me. But if I'm being honest, the thing that bothered me the most about this video is your monotonous voice and how you went through everything robotically (like do this do that without explaining why we write code like this).
    I have seen other channels produce similar content but some of them really explain everything nicely with good narration. The content is the same but it's more enjoyable because I actually understand why I am doing what I'm doing.
    In this video I'm just blindly writing lines of code without having a single clue what each section does.
    So please try to improve on your narration and the way you explain things. Barring these two things I think this was a very helpful video.

  • @williamdavidmorancoppiano1488
    @williamdavidmorancoppiano1488 8 หลายเดือนก่อน

    gracias bro me funciono todo bien eres crack

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

    How to show person data on home activity

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

    Hey Please help I'm getting the Null Pointer Exception error..how to resolve it.. please help it is urgent..🙏

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

      These are mainly due to not initializing the variables which are in XML. Maybe some button is not initialized. Please check the code once again.

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

    This saves us all. You are a programming god. Love it

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

    Can you send me a download file please

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

    Sir, when I am clicking on register button, it always shows register failed. How can i solve that problem?

  • @Anupaliyanage-fl3jt
    @Anupaliyanage-fl3jt 2 หลายเดือนก่อน

    Thank you brother ❤❤

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

    i really love your code, and it so organized and helpful. very thankssssss

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

    Username as primary key? BRUH

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

    code good android studio ver.4.0 how to show user login in page

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

      Glad you asked. You can use intent.putExtra to send username string from login page to homeactivity. I have shown the methon in my another video. Please see that and give your feedback
      th-cam.com/video/jRO0RUztch4/w-d-xo.html

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

    Nice information

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

    Thankyou so much bro

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

    When I click on register my app stops and exits all of a sudden. Any solutions? I have followed same steps same code.

  • @shubhampandya
    @shubhampandya 7 หลายเดือนก่อน

    Thank you very much! It fixed my problem...

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

    I couldn't get it done as I got error in this following part:
    public Boolean insertData(String username, String password){
    SQLiteDatabase MyDB = this.getWritableDatabase();
    ContentValues contentValues = new ContentValues();
    ContentValues.put("username", username);
    ContentValues.put("password", password);
    long result = MyDB.insert("users",null, contentValues);
    if (result==-1) return false;
    else
    return true;
    }
    error: non-static method put(String,String) cannot be referenced from a static context
    ContentValues.put("username", username);
    ^
    Can you point out how I can do this?

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

    u can't c me but i am smiling right now ... bcz ur works helps me alot 😁😁😁😄😄😄😄😄 i wanna clap for u

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

    login.db to show nhi ho raha hai
    database m

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

    I need help. Can I use this method for online service applications?

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

    Likeeeeee 100000000

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

    How we publish this type of app in google play console, it shows login issue error...

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

      There is a different procedure for building the apps uploadable in google play store. I will cover that too in future videos.

  • @NhựtNguyễnMinh-z6x
    @NhựtNguyễnMinh-z6x 5 หลายเดือนก่อน

    Its save my life... thank you so much T_T

  • @HirunikaHatharasinghe
    @HirunikaHatharasinghe 5 หลายเดือนก่อน

    Thank youuuuuuuu.......

  • @indupanawamini7370
    @indupanawamini7370 11 หลายเดือนก่อน

    Thank you so much🙏

  • @williamdavidmorancoppiano1488
    @williamdavidmorancoppiano1488 8 หลายเดือนก่อน

    una pregunta como hago para mostrar el nombre del usuario que me sale bienvenido con el nombre usuario

    • @codingtutorials1857
      @codingtutorials1857  8 หลายเดือนก่อน

      You have to just send the username with the intent using putextra. Watch my video on chatApp for that I have shown that.

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

    Thanks a lot SIr.. But i can't find the Login.db file

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

    Very good totorial guide a BIG THANK YOU :)

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

    Its showing null pointer exception after declaring Boolean checkuser

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

    How can i fix “ Password not matching” i cant register because of that.

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

    It worked on mac OS except i cant open the .db file on other app or i dont know, thank you

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

    It was allowing us to signin ,if we login with registered user and with any password.

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

    #thanks fully guid bro

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

    Can I pay on mobile?

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

    Thank you bro. You helped a lot. Please keep up the good work!

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

    Thank you sir for this video. Really it's useful.

  • @maiphuongduy5797
    @maiphuongduy5797 5 หลายเดือนก่อน

    Nice video 😘

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

    Handsome!!! Great!!!

  • @sakil390.28
    @sakil390.28 ปีที่แล้ว

    thank you bro

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

    Source code plss

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

    if me want view and delete user was add table user ? how to delete user was add ? please help me?

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

    Registers problem password not matching

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

    Thank you so much, your video help me a lot. Thank you so much

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

    i did the same thing as you and i dont have database, in db browser it shows 0 tables.any solutions?

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

    error on clicking register.. any one help?
    or solved please help

  • @VimuThe5ifer
    @VimuThe5ifer 5 หลายเดือนก่อน

    thANKS

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

    wow the code worked first try, so rare for me! thanks so much

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

    sir i am md dulal ali please help me.
    how to create register address and location

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

    Hello after i login it takes me back to registration page instead of activity home ...what could i have done wrong

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

    hello sir i am tried but i get error can not resolve symbol DBHelper

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

    How did you create the SQL sever Database

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

    hello.. how to add coding for Admin? Help

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

    TAK NGERTI AKO

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

    Дякую, допоміг.

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

    thanks man are you the best, greetings from Colombia.

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

    followed all the steps, still working as of now. ty so much sir!

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

    wonderful it really helped , Thanks !!

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

    Thank You

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

    thank you very much it really helped a lot

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

    thanks

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

    I ran the program but after running I am not able to find where the file are gone

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

    Great 👏😊
    Thanks a lot Bro ❤😍

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

    Sir koi video recorder app se hum Jo video record karte hai kya vo video app developer ke pass bhi save hota hai kya... please reply

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

    You are amazing thank you so much i am just need the name of browser to open the sql file plz

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

    Thank you so much sir
    I had seen lot many videos but no clarity
    Your way of explaination is simply superb..!
    Once again thank you so much sir...! It helped me to learn a new topic....!

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

    Omg this was awesome! Thank you so much!

  • @Brai-niac
    @Brai-niac ปีที่แล้ว

    The video was very helpful. Do you have a video on logout?

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

    Worked perfectly. Thank you sir!

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

    thanks you so much even i am not professional im still can programme