Android Login and Register with SQLite Database Tutorial

Amardeep Yadav

Hello there, My name is Amardeep founder of I have experience in many technologies like Android, Java, Php etc. In this variety of technologies, I love Android App Development. If you have any idea and you want me to develop for you then let's have chat Email: [email protected]

You may also like...

24 Responses

  1. Josh Tagz says:

    It’s not running in my emulator, i think their is something missing in the code to run the application. i tried this one in my android studio 3.0.1 version.

  2. Orkhan says:

    Hi, I am curious about where created database is stored.

    • For non-rooted devices, database is in private folder that you can’t access
      but if your device is rooted then probable location of your SQLite database is inside

  3. Rozanna says:

    Hi, Thanks for the code i used only the login part and it gives and error when i run the app it stops doesn’t even open it can you please help me.

    • Sure i will be happy to help you can you please explain me what error you get?

      • Rozanna says:

        Hi Sir,

        Actually i need to develop a login where the admin creates the users and the users doesn’t have to register so i only wanted to get the code for the login and when i run it on my Android mobile it says unfortunately Login has stopped

  4. Surinder Singh says:

    It worked for me! In case if you are getting a problem then please check your dependecy in gradle and add the following code : implementation ‘’

  5. ciro says:

    best tutorial Mr. Amardeep

  6. meek says:

    thx for dis how ever am getting these as errors ( import;
    they selected in red color making everything at touched to them have errors

  7. Kipruto Barno says:

    This tutorial has been perfected to military precision, quite literally. Thanks mate. This is impressive!

  8. Han says:

    Hi I have a problem where I want the user to fill in all the details and if there’s an empty detail left the user can’t proceed but for my app, it keeps registering them although when they have an empty box left.

  9. Sumaira says:

    sir i copy ur code same but Snackbar or TextInputLayout not resolveable plz tell me how i can resolve it

  10. Godwin says:

    Thanks a lot, this is awesome but I want login credentials to be stored within the App, no email address, just username and then password. Thanks.

  11. chetan says:

    When login button is clicked it gives an error as

    java.lang.NullPointerException: Attempt to invoke virtual method ‘android.text.Editable android.widget.EditText.getText()’ on a null object reference

  12. DHARAM says:

    Dear Amardeep,
    Please help to find out the database. Database name is shown as: DATABASE_NAME = “”
    How may I find the entry made in database

  13. Pramod says:

    Thank You Thank You Sir its help me a lot it’s working fantastically

  14. Langgeng says:

    Hi sir, Thanks for your guide
    But I’ve a question, If I want to create another table, for example, admins table what should I do?
    Should I create another class or write it on that class or maybe something deferent steps

  15. harjinder singh says:

    can you help … i want a simple registration and when user register successful ,data need to be saved to my sqlite phpmyadmin databse.. and there is another homepage where user can login only those have registered. please send me full code for that step by step code…
    thankyou hope so u ll help….

  1. May 6, 2018

    […] Referensi : Loop Wiki […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.