Login And SignUp In Android With MySQL
HTML-код
- Опубликовано: 19 окт 2024
- Full video on android login and signup with mysql database. Detailed explanations for beginners with easiest, secure and best methods of implementation. Login And SignUp In Android With MySQL, create an awesome looking login and signup (register) forms and also code the functionalities. Using XAMPP in localhost connection fully explained.
Login, Logout, Registration, profile new video link: • Login and Registration...
Download Full Source Code (Updated on 01/01/2023): youtube.codese... (100% working easy with setup)
Read this (Important):
Android Studio latest version there is some updates needed.
Delete dependencyResolutionManagement from setting.gradle
Check: github.com/Vis...
Downloads and resources:
Fonts and Activity XML files: codeseasy.com/...
Login and SignUp PHP Code: github.com/Vis...
Documentation for Advanced HttpURLConnection GitHub: github.com/Vis...
Best server for affordable price, get 200$ on registering using this link refer.codeseas...
Create a wallpaper application, full project tutorial with web base: • Create Wallpaper Appli...
Join our Discord if you have any doubts: / discord
Contact us for any business queries:
Email: mail@codeseasy.com
Phone number: +918281536333
WhatsApp: whatsapp.codes...
Find us on Social Media:
Website: www.codeseasy.com
Discord: / discord
Telegram: t.me/CodesEasy...
Whatsapp: whatsapp.vishn...
Whatsapp group: whatsappgroup....
Facebook: / codeseasy
Instagram: / codeseasy
Twitter: / codeseasyblog
RUclips: / codeseasy
~-~~-~~~-~~-~
Please watch: "Create Wallpaper Application In Android Studio - Full Project Tutorial For Beginners"
• Create Wallpaper Appli...
How to make money from website (Full Guide)
www.bloggersco...
~-~~-~~~-~~-~
Bro I can't import my PutData what should I do?
Check this for android studio artic fox update github.com/VishnuSivadasVS/Advanced-HttpURLConnection#artic-fox-update-only-add-this
@@CodesEasy bro I saw that but the problem is I can't import class I don't know the reason do I have to import any jar file?
Make sure you have added the jitpack in root and the dependency in app gradle files.
Also try, Select File > Invalidate cache and restart
@@RaviKumar-yl3lt yow bro, did you finish your code?
Delete dependencyResolutionManagement from setting.gradle Check github.com/VishnuSivadasVS/Advanced-HttpURLConnection#delete-dependencyresolutionmanagement-from-settinggradle
This is by far the easiest and no error tutorial for android to mysql connection I've ever seen.
Happy to see that the video helped
So brother you finally come with this video. 💪😃... Hope this will work on latest version of Android Studio.😉
(Your commentator friend)
Awesome! I really appreciate this video. I am studying business informatics in germany and had some issues creating such an app. Thank you so much! Kind Regards :)
Happy to see that it helped you
Great video, explained everything. I am new in all these things, but still undestood everything. Thanks!!!!
Happy that the video was helpful for you
thanks because of you, my project is done bro !!
Happy to hear that
Pretty easy, working and complete. An amazing job!
Happy that the video helped you
Hi Amazing video but when i copy the full implementation code from the github in that the PutData i cannot import it only shows to create class not import class.
Please help.
Appreciate your reply
Again thanks for this amazing tutorial
Make sure you have added the jitpack in root and the dependency in app gradle files.
Also try, Select File > Invalidate cache and restart
@@CodesEasy ok i did that thanks now it works but when i click signup button it says all fields required although i have filled all the fields
github.com/VishnuSivadasVS/Advanced-HttpURLConnection/blob/master/README.md#example-of-root-gradle-file
Example here (updated)
Hi did you resolve this?Please help
Simple, clear , and direct to the point! Thank you for this effective video
Happy that you liked it
Thank You, everything works fine, now I want fetch data inside main activity how ?
Use the fetch data function, reffer the documentation in GitHub.
@@CodesEasy I use it but the return is string not array because that I should clear string ?
after 2 week of Searching Volley Problems and gson shit you save my health today i will sleep correctly cuz of you, thank you so much ♥♥♥♥
Happy to hear that 👍
hi brother, great tutorial btw, but when I am pressing sign up after entering details, a buffering sign keeps coming and this error r message comes, as "Java.net.sslhandleshakeexception:jav a.security.cert.certpathvsalidatorexception:Trust anchor for certification
path not found"
It's shown in the video how to fix it. Manifest part.
same problem
Are you using HTTP for the URL instead of HTTPS?
@@CodesEasy I faced the same issue. I already set the usesCleartextTraffic true but it doesnt work. I have check I am using HTTPS not HTTP also. May I ask for you help please?
Use http since you are not having an SSL and add clear text traffic to true
Cool bra🔥🔥.
The world needs people like you
Happy that you liked it
Hello Master! can I ask what is the problem with my app and database connection, i just finished the sign up part of the video, When I sign up first time, it is successfull but when I look inside the database, the username, is "username" the full name is "full name" and the email is "email" in the entries. not vishnu or the username i typed. also when i sign in another time using the different names, it says duplicate entry username for key username. I have already spent a whole 4 hours reviewing your vid but i cant find the fault. please anybody help me 😭😭😭
Check the signup java part. You have made a very small mistake of quotes.
Remove the quotes for the data veriables. Check the video the part where we assign username password etc. Just remove the quotes in the array data. That's all. 👍
same issue here
@@CodesEasy You're a genius
Helped me a lot Thank you very much.
Simple query in both case login and signup why using the same class PutData. Shouldn't be using FetchData.
You can use something like google volley. There is already a video available on our channel check kt
Hi, Thanks for this tutorial. I would like to proceed with fetch data but 2 php files are not readable(only within the server). Would it be ok if i can request the 2 php file for the fetch data reference so I can study how your fetch data works? thanks
Sure. Will do that
Thanks for this bro!! I got it without error
Happy that the video helped you
hey! At the sign up page, I get sign up failed. I checked the code and there was nothing wrong. What could be happening?
Check the api and make sure it is working. Use postman to test.
Same bro how to fix it
The code must have error. Most of the time it will be very small mistakes, like wrong placement of brackets or semicolon etc etc. Go through the video once more and check it with your code. You can also download the full source code from description.
Hi ! First of all, kudos on the comprehensive tutorial, and of course the library itself. One question though: what would be the right way to handle json responses with it?
"com.google.android.material.textfield.TextInputEditText " for me is completely red and not underlined red like yours and I cannot drag the text layouts correctly. help pls @Codes Easy
You need to add a library, check the video
for the drag mace sure you clicc ctrl+alt
Thanks a lot. It works perfect.
Happy that the video helped you
Thank you for this explanation, I have a question I would like an answer to
Is it possible to connect the login through php mysql and the chat database be through
Realtime/firebase
Sure, create some token to verify the user and the executive chat
Good teaching. Step by step procedure explained very well. Thank you very much.
You are welcome!
Love you man, ty for the tutorial
Happy to help!
Thank you for the video, it works if I install via USB cable the application in my smartphone? Will the database credentials in xampp be copied to the phone, or will the application only work if emulated on a pc? many thanks in advance
You need a real server for using it like normal. You can use the app on mobile if your mobile is connected to same wifi and the ip address is correct.
@@CodesEasy Thank you
Keep it up like This...I am to worried about this how should I connect my my Android app to my webserver..
I thought 💭 this is Only one Video on RUclips which will clear out this
Happy that you liked it
@@CodesEasy implementation link is not working
please give me a response as soon as possible I found error
Make sure you have added the jitpack in root and the dependency in app gradle files.
Also try, Select File > Invalidate cache and restart
thanks for the video
and if i compile it to apk will the mysql DB be in the app and keep working ?
Yes, but it is using local host server so it should be connected to the same wifi network. Or you can use a real server.
@@CodesEasy thanks
YOU ARE AMAZING, PLEASE KEEP MAKING MORE VIDEOS :)
Happy that it helped you
I LOVE YOU!!! CODES EASY!!!! AUTO SUBSCRIBE + RING THE BELL ALL THE TIME!!
Happy that it helped
great video, i would be great if you make a tutorial on Login And SignUp In Android With MySQL using Flutter (without Firebase)
Sure
Thank you for you help. Good tutorial
Glad it helped
Thank you for the video is the source code also available from your library?
Hello Sir, so does this means that the app must connect to the same WiFi as the computer to enable it to work?
its working, thanks alot
Happy that the video helped you
bro youre a god, it really helps me. By the way, is there any video that has face recognition using sql data base?
Hello sir thank you for the tutorial it helps me a lot I'm done in my first step on our app thanks again by the way 👍
Happy that it helped you
Ahhmm hello sir do you have any suggestions how can i insert Dropdown menu or Spinner in this tutorial?
thx bro this is the only video that work with me
Happy that it helped you
Hi sir thank you for this awesome tutorial, If you wouldn't mind, Ido have a question as well regarding the app, after signing up, the app doesn't redirect to the login page, is there a way to fix this problem? been trying to fix it for hours but still failed to do so😢
Check the code the Intent part. If you are not able to find the error download the source for the app from the description
thanks for this..i will try to create simple app also..More tutorial please..
Sure I will
God continue blessing you. But my app is not going to the login page after passing the credentials and success...It does not load to the main application. Help me sir
Check the login java part. In the if condition check if you have added the intent properly and also check the if condition. Compare it with the video. You can also download the source code from description if needed.
Hi, first of all thanks for the video it was really helpfull, I need your help with something though when start the app I get a "Launch succeeded" but the app crashes any idea on how to solve this please ?
Check the logcat for seeing errors
Excellent Tutorial Thank you
Happy that you liked it
Resolved Thanks Dude!
👍
Amazing video, really good tutorial. Keep up the great work brother!
Happy to hear that
Bro thank you very much and this is very helpful
Happy that the video helped you
Amazing video and self explanatory, great work
Happy that you liked it
Hi!
Appreciate your work.
If i were to use MySQL instead of XAMPP what would i have to do?
You will have to create tables etc with query and if it's in local host use local ip
Thank you so much.
I really appreciate this Video.
If you don't mind, I have a question if I want to create this login video and associated iListView with Custom Adapter - Social Media App Design for each user. Can it be done? If so, can you create a video on how to link each user to his/her view? Thank you so much
Yes, you can use the login and listview custom adaptor view and create an application. You just have to make the listview on MainActivity. Just follow the videos you can put them together and do the app.
@@CodesEasy correct but how can I make each user have his/her own videos? Can u create a video or explain the steps?
Please Let me know how it can be done, or if you can create a video on how we can do it that will e great.
thank you so much , really you help me , this the first time that the application works .really thanks
Happy that it helped you
@@CodesEasy today the application dosn't work , i don't know why !
Slow but sure... I appreciate your approach as it worked...You even added some extra useful information👍👍 Thank you and may God bless you
Glad that it helped you
Thank you very much! You saved me.
Glad I could help!
Its working for me thanks a lot.
Glad that it helped you
Very helpfull video my friend.I want to ask you how we can check if username and email already exists ?
It's already done in the api side
@@CodesEasy i try it but i register with the same username and email many times there is no check if the user all ready exists
Thank you so much. Very clean and clear tutorial
Happy that it helped you
Great Video, amazing channel. The only video on youtube that worked for me in connecting to MySQL. Clear and straight-forward.
I have question; how can I display data from the database in textview or listview ? Do you have any video on that ?
Yes, we have videos on fetching data using volley. ruclips.net/video/CjEWtaZW5Ck/видео.html
How would you switch login and signup pages, if you worked inside of fragments? 54:58 - You are using intent on line 38 for switching classes, but in my case login and signup pages are inside of different fragments. So, I have to replace signup fragment with login fragment and vice versa. What would you write inside of listener?
NextFragment nextFrag= new NextFragment();
getActivity().getSupportFragmentManager().beginTransaction()
.replace(R.id.Layout_container, nextFrag, "findThisFragment")
.addToBackStack(null)
.commit();
@@CodesEasy You won't beleive how you helped me...I have spent 5 hours today for doing it, and it didn't work because i didn't input right "R.id.layout_container"...Thank you a lot! Keep publishing new videos!
Really happy to hear that
Hai, I am beginner, I don't know anything about Android, will this video be enough to build a basic App? Do reply, I have a project to do, and I am looking for a video that would help me learn and understand easily. 😭
Android Development Course - Android Studio Tutorials: ruclips.net/p/PLnXGuXovKemRMHG37h9vbM_ifzlHUxOpp
@@CodesEasy Is flutter easy to learn for beginner?
If you are completely new I won't suggest flutter
Thank you so much for your instructional video, very useful.
Happy that you liked it
Hey, i find your video very helpful and understanding, but i think i got problems with my connection to the IPv adress of my PC. I typed it in and ran it on my mobile phone, like you said, i typed in my data and pressed sign in but my app stopped and said it took too long to function properly. I really don't know why it doesn't work... Can you give me any tipps? :(
Your IP address will be wrong, make sure the link of signup is accessible through a browser in the mobile in which you are trying the app.
Use an emulator, it will be easy.
@@CodesEasy Thank you very much, i really apprechiate it! it really had been the wrong IP adress ;)
Thankyouu!! it's works perfectly finee!
but, did you have any idea why in mysql the username, fullname, etc is stored hidden? is that because we using the post method?
because my mysql is not showing the real fullname of user and replace it with only "fullname"
//updt
nvm, found the solution already 😁🙏
It's not hidden, you have made a mistake in the signup java part. Check the data array. Don't use quotes for data array. It's a variable and don't need quotes. That's all. You can also check our new video on the same
@@CodesEasy ahh yaa i see, thank you so much 🙏
Hi sir, good video. My question is: will the application with remote db connection continue working on a real smartphone? Xampp works on a real android smartphone without adb?
You have to use a real server for that.
Sir to run this app on my Android phone does this need a real server or is this xamapp is enough
what version of android studio did you use?
Not really sure, but you use the latest version. There is a very little change in the part of creating the project. Everything else is the same
great videos it was very helpful. Thank you
Glad it was helpful!
hi great video you have here but can you please tell where can i download the SINGUP layouts because that is where i am stuck now
The necessary files are given in the description
Hello, im also having trouble importing PutData, the option doesnt appear like on handler, i saw that we need to delete everything on dependencyResolutionManagement from settings.gradle on grandle scripts tab, but when i do that i get erros everywhere, im really confused rn, is it because i download the newest version?
Wich version u were using on this video?
If you don't understand and need a working source you can get it in the description.
Thanks from Brazil
Happy that it helped you
sir, you have to add the url in signup page, from where i can get it? plz sir guide to me 🙏
Thank you very much, the video is very good and useful!
Happy that the video helped you
Thank You, really good tutorial.
i want to try for fechdata, but i dont understand how to implemented
can we see the php file for fechdata?or you have tutorial for this?thanks
Check the GitHub url, it's written there
Will it work when run on a physical device? not in a virtual machine. How the application connects to the database?
Yes it will work, you will have to use a real server to store the php scripts and database. Or you could connect the computer and mobile device on same WiFi network and it works locally. Use server for access it from anywhere.
@@CodesEasy what do you mean by use a real server? do you have a tutorial about it?
Hey man I really loved this. I do have a doubt though, will that signup.php work with devices not connected to my wifi? what if someone wants to use the app somewhere else?
If you want to use it like normally you need a real server space.
@@CodesEasy thanks so much I've integrated it with firebase!
@@raghavsinha5298 how did you do that?
can I do all these process same for java in android studio? what should I do?
Yes, it's using Java.
Hello, I really like your video! btw, I have problem with my database. When I have successfully signup an account to phpmyadmin the inputted personal details is not showing, under the fullname, username and email is the same as it is. And when I login but I just make a random letters it always says "Login Success" I think it is because of the database. Can you help me with this one? Thank you so much.
You have to make sure you create the api correctly. If you are making any changes from the video it could be the problem. You should test the APIs seperately, use postman and test the api and fix errors.
Great video!
Happy that you liked it
Request sir for Insert, Update Deletes, View, and Search.Thanks sir
Sure
@@CodesEasy thanks very much sir
does this connection work only for phones using the same internet connection? what if you want the app to be used with people in different location, how will the connection be?
You have to buy a server space (hosting) and upload the files and database
Thank you so much
This was an Amazing tutorial video
Keep the awesome job
Happy to hear that
@@CodesEasy I got an error on this->connect, says Expected type 'mysqli'. Found 'null'
Hello! Thank you for such great content!
I am currently a student and would love to use what is in your GitHub repository for open-source contributions. But cannot do so because there is no license. Was wondering if it's possible for you can attach a GNU GENERAL PUBLIC LICENSE to the repository so I can use it in open-source contributions. Thank you!
Sure,, will check that.
Thank you ;)
Happy that the video helped you
Hey, this is really helpful but now I need help what does Advanced-HttpURLConnection actually do? I mean if I don't want to use the implementation of you file how do I create my own ways of connecting it?
You could use Volley or Retrofit
Great tuts do you have any tuts on how to retrieve data from the database.........after upload
Yes create an api like this ruclips.net/video/LAb5yJRz0e0/видео.html and the use volley to get the data like this ruclips.net/video/CjEWtaZW5Ck/видео.html
Hi,
There are some error coming, Which are
Anonymous new Runnable() can be replaced with lambda
Anonymous new View.OnClickListener() can be replaced with lambda
Will this be an issue in execution as these are only warning but were not showing in your code.
Rest, your code and explaining is best for an beginner like me 😊
Its just a warning you can ignore it
@@CodesEasy I have referred your 3 videos and I must say that they are too nicely explained 😀👌
Thank you so much! Amazing Tutorial
Happy to hear that
thank you so much man you saved me
Glad that it helped you
Hello! I really appreciate the video. I was wondering if you have a solution for this type of error? Expected type 'mysql'. Found 'null'. intelephense(1006). This error is appearing on my DataBase.php file and it highlights, $this.connect -> null; , as the problem. I am currently using visual studio code for the php.
Check properly, the red line showing on vs code can be misleading. You are passing a null value instead of mysql connection variable. That means most probably the MySQL connection will not be successful. Check user name password ip database name etc in DatabaseConfig.php file
@@CodesEasy Ok great. Thank you for your response. I appreciate it.
Thank you so much for the tutorial and source codes! Subscribe and like!
Glad it helped!
Hi! That was a really useful and easy code! Thank u so much
I just have a question, at your “parameter” and “data” arrays, what are those variables? The database variables so i can store the data coming from the fields there, or the Java variables???? I got confused
@@CodesEasy i know but what is that “value?” Is it my app data that the user is going to insert or the DB column?
@@CodesEasy and what’s the difference between those two arrays ?
Yes, correct
What Apptheme did you use ?
It's shown in the video, 43:45
Signup is taking long time and the data is also not getting saved in the database . pls help
and also huge thanks to you brother, awesome video
test you api separately with postman, if you are a complete beginner then watch the video again carefully and do it again.
Sir the gradle on line 8, I need to put in the code is the exact version of my cradle?
It's not the exact line, watch the video properly. Or you can also download the full source code from description.
@@CodesEasy Thanks for noticing my comment tank you sir.
Great Tutorial! Do you use volley library?
No, a different one is used.
can I also connect my android app to mysql database which is already hosted? or I can only connect it via localhost?
Yes you can connect to real server according to your needs.
@@CodesEasy thank you
This works perfect for my application and server. But I need to make an arraylist displaying all usernames and passwords from the database. What should I do?
Create an api that fetched all the data and use volley or some other http library to fetch it. We have videos on our channel for this
@@CodesEasy Thanks. I successfully created one!. You're Vishnu, right? Thanks so much ! ^^
Hello, I really like ur video on youtube Login and signup in android with mysql! Btw i have problem with my database. When i login but i just make a random letters it always says "Login Success", i think it is because of the database, and can't move to the next activity. Can u help me with this one? Thank u so much
Check the java part the intent part
Hey, are you planning doing a video for flutter Mysql?
Sure, thank you for your valuable suggestion.
Hello! just curious when you copied the handler portion of the codes in, instead of Import Putdata mine is created classs instead
waht should i do
Make sure you have added the jitpack in root and the dependency in app gradle files.
Also try, Select File > Invalidate cache and restart
Very nice tutorial
Happy that you liked it
thancks for this great tutorial you are the best my friend . plz if you can tell me how to add "forgot password" activity i will be so thanckful
You can mail new password to the email address. Create php api
@@CodesEasy thanck you so mush i will
6:13 can I use android studio for this??
You can use any IDE, but android studio is only for android apps.
sir , is it possible to retrieve the registered users into another activity whenever required ?
Sure. Use shared preferences