Android Login and Register with PHP MySQL and Volley Library

  Рет қаралды 75,558

Sandip Bhattacharya

Sandip Bhattacharya

3 жыл бұрын

Master programming and take your career to new heights with clear, concise C, Android, and Web Development courses for just Rs. 999 / $ 12. Get lifetime access and certificate. Click here to enroll: courses.sandipbhattacharya.co...
In this tutorial, I'll show you how to develop Android Login and Registration functionalities with PHP, MySQL, and Volley Library. I have explained everything step-by-step with a simple and secure way of implementation. Let's build a professional-looking login and registration form and implement the functionalities in code. We'll be using XAMPP localhost connection for this demonstration. For sending an HTTP request to the server we'll use Android Volley library. So, let's get started.
Download XAMPP: www.apachefriends.org/downloa...
Android Volley Overview: developer.android.com/trainin...
Source Code for this video
github.com/sandipapps/Registe...
Check the login folder for PHP scripts and MySQL dump file.
| -------------------------------------------------------------------- |
👍 Subscribe to the Channel
kzfaq.info...
Check out other Playlists
► Introduction to Programming with C (2 hours of video content)
• C Programming Tutorial...
► Android App Development for Beginners (8+ hours of video content)
• Android Apps and Games...
► Build a Complete Quiz App for Android
• Build a Complete Quiz ...
► Android SQLite Programming for Beginners (2.5 hours of video content)
• Android SQLite Program...
► Android Game Development in Android Studio: Build Games for Absolute Beginners (3+ hours of video content)
• Android Game Developme...
► Android Game Development - Create Your First Mobile Game
• Android Game Developme...
► Android Game Development Tutorial
• Android Game Developme...
► Programming Flappy Bird for Android
• Programming Flappy Bir...
► Object Oriented Programming Fundamentals
• Object Oriented Progra...
► jQuery for Beginner to Advanced
• jQuery for Beginner to...
► PHP MySQL CRUD Tutorial (Create, Read, Update, Delete) (1+ hour of video content)
• PHP MySQL CRUD Tutoria...
❤️ You can donate by clicking here
PayPal: paypal.me/CreatorSandip
For Indians: www.instamojo.com/@CreatorSandip
✉️ For Business Inquiries
sandip.bhattacharya16@gmail.com
📣 Follow me on other sites
→ Website: SandipBhattacharya.com
→ Udemy: bit.ly/SandipUdemy
→ Skillshare: bit.ly/SandipSkillshare
→ Google Play: bit.ly/SandipPlay
→ Facebook Page: bit.ly/SandipFacebook
→ Facebook Group: bit.ly/PWSGroup
→ LinkedIn Group: bit.ly/PWSGroupLI
→ Twitter: bit.ly/SandipTwitter
→ GitHub: bit.ly/SandipGitHub

Пікірлер: 272
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Master programming and take your career to new heights with clear, concise C, Android, and Web Development courses for just Rs. 999 / $ 12. Get lifetime access and certificate. Click here to enroll: courses.sandipbhattacharya.com/s/store
@uttkarshbamne2614
@uttkarshbamne2614 Жыл бұрын
From where do you get the network security config file at 19:50 Please reply
@kayoom9613
@kayoom9613 2 жыл бұрын
this is a live saver for me thank you so much! :)
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
I'm so glad! 😀
@Mashwishi
@Mashwishi 2 жыл бұрын
Is there a tutorial where the login takes user data to print in the logged in activity ? instead of "welcome" only?
@jennitang6974
@jennitang6974 3 жыл бұрын
Thank You for this tutorial
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Thank you, I will
@InitialDlite
@InitialDlite 3 жыл бұрын
after long time,thanks bro
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Always welcome 🙂
@chubbyquerol4836
@chubbyquerol4836 2 жыл бұрын
how to get the URL? my app did not register at the data base
@azahatmughal439
@azahatmughal439 2 жыл бұрын
I have downloaded the demo and testing it on my phone. Whenever I fill fields and click on login or sign up button it says com.android.volley.TimeoutError. Please help!!!!
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
You need a PHP/MySQL hosting service provider.
@IAMPPR2
@IAMPPR2 3 жыл бұрын
Hello Sandip, as a matter of fact many of your video are helping me in my journey to learn using android studio. Thanks for this excellent job. I was able to create new recors on my DB using your approach, ( yes I did it) now I'm wondering how to pass decimal number introduced in a textView( set as decimal numer) to my BD. the stringRequest seems to accept only string, now I expect to load a Integer in my DB. Any suggestion ? Thanks
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Glad to hear that. Try using JsonObjectRequest instead of StringRequest.
@boh8372
@boh8372 3 жыл бұрын
Hello Sir. Good videos. I've a question. Will the application continue working if I decide to install it on a real smartphone? I mean, even the connection is local through xampp, I have my doubts if this will allow to your application working correctly, connecting to the database.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Hi and thank you. Regarding your question, you need to test with online links.
@totalfootball6397
@totalfootball6397 3 жыл бұрын
The IDE is getting an Error as it says that the conn.php file must end with.xml? Why is the happening?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Never heard of this kind of problem.
@samratgupta2521
@samratgupta2521 3 жыл бұрын
Hello sir, I liked your video but there is a problem.. implementation 'com.android.volley.volley:1.1.1' Android studio is not taking it
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
What error you're getting in Android Studio after synchronization?
@lucakraut9720
@lucakraut9720 3 жыл бұрын
Hello good Video but i have problems with the network-security-config, when i add an Folder with an XML with the same contetnt as yours i got an Error with Element network-security-config must be declared can anyone help ?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
@Luca Kraut, Hi, try using this line of code in manifest (within the opening application tag). android:usesCleartextTraffic="true"
@deepsharijan6301
@deepsharijan6301 3 жыл бұрын
sir, when I included the volley library in dependencies, it shows error like unable to resolve dependency for ':app@debugAndroidTest/compileClasspath
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Try this: File > Invalidate Caches / Restart
@deepsharijan6301
@deepsharijan6301 3 жыл бұрын
@@SandipBhattacharya Thankyou sir ,it worked
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Great!
@chrisschutte524
@chrisschutte524 2 жыл бұрын
When I click on the Register button nothing happens, firewall is off. But I do get these “errors” in Logcat: W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without.. I/Gralloc4: mapper 4.x is not supported W/System: A resource failed to call close.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Make sure Apache and MySQL are running in the XAMPP control panel.
@techiemommangquezon1857
@techiemommangquezon1857 3 жыл бұрын
Hello, I have done your video tutorial. I have successfully run it. I registered first and it was saved on the database, however I could not login. There is no error message in the logcat nor on the log on the xampp server.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Hi @Tech-ie Mom-ma ng Quezon, check if you are passing a null value to the server in getParams() or if you are missing any parameter. Also, check your url for any errors.
@salmaahmed8201
@salmaahmed8201 2 жыл бұрын
Hi, thank you so much for the explanation I was able to go through with the video and finally come up with an app without any trouble, but upon registering a new user after filling the form and clicking register it says com.android.Volley.TimeoutError. i turned off the firewall and skype as I have restarted xampp and turned them both on, then I run the emulator but still. Then I went through the comments and you mentioned adding the following code before stringRequest and I did that, the error didn't show up but after filling the form and clicking register it doesn't show anything. Please help
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Make sure the register.php page is able to receive value from Android.
@srushtinavadiya07
@srushtinavadiya07 Жыл бұрын
hello sir... when i click on register button. i got com.android.volley.TimeoutError! how can i solve this error? please help me! my apache and mysql is working and firewall is off. guid me
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Hi Srushti, check out my earlier comment on this video.
@MB-on8qq
@MB-on8qq Жыл бұрын
I have no error but when i pressed register or login nothing happens
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Turn off your firewall. Make sure Skype is completely closed while running xampp since Skype has known issue with xampp. Another option would be to uninstall xampp and use wamp.
@sunilmahur9024
@sunilmahur9024 3 жыл бұрын
Dear Sir, How to send Serializable data from edit text in to MySQL database via Volley Lib.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
I am not sure about using serializable data with Volley. However, you can use getParams() method, create a Map, put parameters in it as key-value pairs and return the Map object to the server. That should work.
@wowo640
@wowo640 2 жыл бұрын
Hello I followed all steps checked if somethings wrong. the problem is there is no error but why i cant register. my MySQL and Apache are working properly . can you help me?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Hi, turn off your firewall and see if that works.
@14875A
@14875A 3 жыл бұрын
Hello,sir. When I press the register button, there’s a message show that “com.android.volley.clienterror”. I check that apache and MySQL in xampp, they’re working normally. And I try to turn off the firewall, still can’t work. Can you help me to fix the problem?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Can't say without looking into your code. If you want me to have a look into it, send me a query through my website. Thanks.
@DimasBayuAjie
@DimasBayuAjie 2 жыл бұрын
@@SandipBhattacharya me too pls help me
@astrophel12
@astrophel12 2 жыл бұрын
@@SandipBhattacharya I got the same error, can I send my code to you?
@aayushithakur4049
@aayushithakur4049 Жыл бұрын
@@SandipBhattacharya Sir got the same problem please help
@ratulmondal7154
@ratulmondal7154 Жыл бұрын
change your folder name in htdoc to login
@saminp2496
@saminp2496 Жыл бұрын
Thank you
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
You're welcome
@markiru1732
@markiru1732 Жыл бұрын
Hi sir I'd like to ask where did you get the url php? is it the location where your php file is located in the xampp?
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Yes, correct. And since we're running the app on the emulator, we need to add: 10.0.2.2/ or, 10.0.2.2/ before the folder name (located in xampp\htdocs). So, the complete url then becomes: 10.0.2.2/login/login.php or, 10.0.2.2/login/login.php in our case. Hope things are clear!
@markiru1732
@markiru1732 Жыл бұрын
@@SandipBhattacharya thank you so much it help a lot
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
@@markiru1732 You're most welcome!
@chubbyquerol4836
@chubbyquerol4836 2 жыл бұрын
how to add server cerficate in android studio? mine is empty.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Hi, Go to File > Settings > Tools > Server Certificates and add your certificate under "Accepted certificates". You can also check the option "Accept non-trusted certificates automatically". Hope that helps!
@AnantsGalaxy
@AnantsGalaxy Жыл бұрын
When I click on register it says "com.android.volley.timeout error" , What's the solution for that ?
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Check out the solutions I gave in the comments section for "Volley Timeout Error".
@ryelanrosalinas1204
@ryelanrosalinas1204 2 жыл бұрын
hi sir. I have this new error "com.android.volley.AuthFailureError". What should i do for this type of error? pls reply thnx
@divyanshukhattar2870
@divyanshukhattar2870 2 жыл бұрын
check your gradle file and implement volley correctly maybe this will work....
@jeremytiempo5365
@jeremytiempo5365 3 жыл бұрын
do you have a vid about how to get data from mysql displayed into android activity? By the way nice tutrial for this video its saves me.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Thanks a lot. Check out this video for getting data from MySQL database and displayed into android activity (Spinner): kzfaq.info/get/bejne/gpenicd4t9SrdZs.html
@jeremytiempo5365
@jeremytiempo5365 3 жыл бұрын
@@SandipBhattacharya i mean when i login the single data will be selected and display on a textview for example.
@kuriru2248
@kuriru2248 2 жыл бұрын
I would also want to know
@migueltan2316
@migueltan2316 Жыл бұрын
Hi Sir, if we add it to the web host, is it the URL variable value will change?
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Hi Miguel, yes, it'll change.
@4_0_4_1_9
@4_0_4_1_9 Жыл бұрын
When I run the code the error (W/System:A resource failed to call close) shows up.
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Have you tried the solutions given below? stackoverflow.com/questions/56911580/w-system-a-resource-failed-to-call-release
@accdummy7160
@accdummy7160 2 жыл бұрын
Hello Sandip, Your tutorial helps a lot but i have a problem, after clicking register it shows something went wrong. what causes the problem? help me plss
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
@Acc Dummy, turn off your firewall first. Then, make sure Apache and MySQL are running in XAMPP control panel. Then, run the app. If the problem persists, check your Logcat statements for any errors.
@amonlexa57
@amonlexa57 2 жыл бұрын
Hello, can you please fix it?
@aizadtulaleya5861
@aizadtulaleya5861 Жыл бұрын
do you have a video on how to run android project with volley on real mobile device? because i keep qetting volley timeout error when i run my project on real mobile device. if you do have it, please share the link. thank you so much for your help
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
I don't have a video for this at present. But, the idea is, that you need to put your PHP scripts and use MySQL on a web hosting server.
@arkayerdota2462
@arkayerdota2462 2 жыл бұрын
Good day! i have a problem first insert success but when i insert another data nothing happen. thank you
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Use a Log statement to print the values in variables. Check for null values.
@tej_3423
@tej_3423 3 жыл бұрын
Very nice video. Can I run the application on a physical mobile with everything working correctly with the database?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Yes you can! In that case, you need a php/mysql web hosting service to upload your php scripts and create the database on the server.
@angelohagon2777
@angelohagon2777 2 жыл бұрын
Can I use a localhost instead?
@tej_3423
@tej_3423 2 жыл бұрын
@@angelohagon2777 yes, you can! But make sure to turn off your firewall first!
@angelohagon2777
@angelohagon2777 2 жыл бұрын
@@tej_3423 thx bro.
@sheetalarya9851
@sheetalarya9851 2 жыл бұрын
keep showing "something went wrong" whenever i register, i turned off my firewall and also checked all my code with source code.please help me 🙏🙏🙏
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Check your Logcat statements. Also, you can log the response (by using, Log.d("key", "value/string variable")) to see if it's returning null.
@mr.emreturan
@mr.emreturan 2 жыл бұрын
Hello, thank you for this beautiful tutorial. I am having an error named: "com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found." Can you please help me with this error? Thank you so much.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
@Emre Turan, Hi, this exception "...Trust anchor for certification path not found." is usually caused if you haven't configured your web server properly and it doesn't have the root certificate or is missing some public key or a .crt file. I don't know which web server you're using, check your web server config first. Also, try using "https" instead of "http" in the url.
@mr.emreturan
@mr.emreturan 2 жыл бұрын
@@SandipBhattacharya thank you for your reply.
@purvithakar9551
@purvithakar9551 2 жыл бұрын
I have a error Com.android.volly.NoconnectionError:java.io.IOExeptiom:Cleartext HTTP traffic to 10.0.2.2 not permitted Pls ans as soon as possible
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Try these: 1. First try hitting the URL with instead of 2. Create file res/xml/network_security_config.xml: api.example.com(to be adjusted) In AndroidManifest.xml write: ... 3. In AndroidManifest.xml write: ... Hope that helps!
@zahiruddin2125
@zahiruddin2125 Жыл бұрын
Please help sir. Even when i entered the correct details in login, it keeps saying invalid login id/password
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Make sure Skype is completely closed while running xampp since Skype has known issue with xampp. Another option would be to uninstall xampp and use wamp. Also, turn off your firewall. If the problem persists, you can send me an enquiry through my website and I'll look into that.
@markyyyyy0
@markyyyyy0 6 ай бұрын
what if theres no java option when i choose java or kotlin, the only available language is kotlin, it is still okay ?
@SandipBhattacharya
@SandipBhattacharya 6 ай бұрын
Thank you for asking this question. Follow these 7 steps: 1. In the "New Project" screen select default (Kotlin DSL (build.gradle.kts)) for "Build configuration language", click Finish. 2. Delete "MainActivity.kt". Manually add a Java class to your project. Right-click on the package > New > Java Class. You can name it "MainActivity.java". Extend AppCompatActivity. Click "AppCompatActivity", press ALT+ENTER and import the package: import androidx.appcompat.app.AppCompatActivity; Override onCreate() method. For example: package com.example.myapplication; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity{ @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.layout_main); } } 3. Right-click on res and create a Directory called "layout" and add a layout XML file ( named layout_main.xml) by right-clicking 'layout' > New > XML > Layout XML file. Name it ' layout_main'. Select a Root Tag (E.G. LinearLayout). For example: 4. Open themes.xml inside 'values' folder and add this theme: true false true @null 5. Open AndroidManifest.xml and replace the theme (2 places, in application tag and in activity tag): android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen". 6. You may need to Build > Clean Project. 7. Success! That's how it's done! ✨🙌🚀 Hope that helps!
@markyyyyy0
@markyyyyy0 6 ай бұрын
@@SandipBhattacharya Thank you so much sir 🙇
@SandipBhattacharya
@SandipBhattacharya 5 ай бұрын
You're very welcome! Remember, every challenge is a stepping stone to success. Keep learning, keep growing! 🌟
@jonesjones6915
@jonesjones6915 2 жыл бұрын
Logcat"getTextBeforeCursor on inactive InputConnection" app Anzeige "Something went wrong!" Was soll ich tun?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Are you using Flutter?
@arisu29
@arisu29 2 жыл бұрын
Hi sir, thank you for the tutorial, i try to use 000webhost as database, but when i Click register button the tvStatus show something went wrong, how can i fix this sir? Because when i see the logcat, i cant find any error
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
We can't say anything without looking into your code. You can send me a query through my website if you want me to look into it.
@rickywilliams5540
@rickywilliams5540 Жыл бұрын
hi, im using wamp server. im getting an error saying "com.android.volley.authfailureerror". please help.
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Hey Ricky, this error indicates that there was an authentication failure when performing a Request. 1) Make sure to add "network_security_config.xml" file in "xml" folder and refer in Manifest. 2) Try using "https" instead of "http". If that doesn't work, use XAMPP.
@rickywilliams5540
@rickywilliams5540 Жыл бұрын
@@SandipBhattacharya hi, thank you for replying. i did the file and i tried to change it to https. unfortunately i can't change to xampp because of the project im doing. Do you perhaps have any other solution?
@53_deepakvishwakarma45
@53_deepakvishwakarma45 2 жыл бұрын
Sir I am getting an error at StringRequest stringRequest = new StringRequest (Request.Method.POST, URL , new Response.Listener() Please help me to fix this.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
What is the error?
@luisreguillo8869
@luisreguillo8869 2 жыл бұрын
Error: new Response.Listener() { and new Response.ErrorListener() {
@yuragailvictoriaoloresisim3451
@yuragailvictoriaoloresisim3451 2 жыл бұрын
I'm getting volley.Timeouterror when I run the application on a mobile device, what should i do?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
You need to install XAMPP on your Pc/laptop and run the app in the emulator. Or, you can upload your PHP script and MySQL data to a hosting service provider.
@yuragailvictoriaoloresisim3451
@yuragailvictoriaoloresisim3451 2 жыл бұрын
@@SandipBhattacharya what is a hosting service provider, can you provide an example, Ps. i'm only a 2nd year college student and you're video really helped me, thanks a lot, you saved my life
@poojakhore
@poojakhore 2 жыл бұрын
App get closed immediately by clicking on submit button. i am doing only login not the registration part.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Pls check your Logcat messages for any errors.
@duyphunguyen1011
@duyphunguyen1011 3 жыл бұрын
If I use another network to register and login, will this work sir ?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Yes. For example, you can upload your server side PHP scrips and make a MySQL database with your Hosting Provider, make necessary changes in the variable values ($server, $username, $password, and $database) in conn.php and it should work!
@duyphunguyen1011
@duyphunguyen1011 3 жыл бұрын
@@SandipBhattacharya Do you have a tutorial for that ?
@user-nh1kd2kv3q
@user-nh1kd2kv3q 3 жыл бұрын
why my new Response.Listener() is gray
@user-nh1kd2kv3q
@user-nh1kd2kv3q 3 жыл бұрын
new Response.ErrorListener() and AuthFailureError they same
@naj_skcir
@naj_skcir 3 жыл бұрын
mine is working fine even they are grayed.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
@Rica, thanks for the feedback. 🙂
@luisreguillo8869
@luisreguillo8869 2 жыл бұрын
×2
@codeammar3332
@codeammar3332 2 жыл бұрын
Sir i have done exactly the same code like u even the app and file names are the same but when im pressing register something went wrong is appearing i have no errors at all but i dont know where is the problem
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Make sure Apache and MySQL is running in Xampp Control Panel. Also, you need to turn off your Pc firewall. I hope your problem will be fixed.
@codeammar3332
@codeammar3332 2 жыл бұрын
@@SandipBhattacharya they running but ill try turning my firewall off thank youuu
@danielmwinzi9223
@danielmwinzi9223 2 жыл бұрын
why is it that the code inside onResponse method in volley doesnt execute if(response.equals("success")){ Intent intent = new Intent(login.this,jobs.class); startActivity(intent); finish();
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Java class names should be in UPPER CASE.
@danielmwinzi9223
@danielmwinzi9223 2 жыл бұрын
That's the reason it's not working?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
It can be. Just do it and see for yourself.
@phy3159
@phy3159 3 жыл бұрын
when i press the register here., a blank screen appears in my app.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Check your Logcat statements for errors.
@seshikumar9869
@seshikumar9869 2 жыл бұрын
Failed to make and chown/acct/uid_10058 : Read only file system This is what the logcat showing ..
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Hello Seshi Kumar, try deleting the emulator and then recreating it.
@deepakdildar6157
@deepakdildar6157 Жыл бұрын
Guys anyone can help me to connect my android studio to mysql data base please
@SandipBhattacharya
@SandipBhattacharya 11 ай бұрын
@deepakdildar6157, What exactly is the issue you're facing?
@lentreb4494
@lentreb4494 3 жыл бұрын
Sir nothing happens when i click register and login please help me
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
There is something indicating what's going on in the Logcat. Go check it out Logcat when you run the app.
@majhawk8431
@majhawk8431 Жыл бұрын
what to do if there is no error but it is not taking the data
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
It may be an issue with your XAMPP or WAMP server. Try putting your php scripts on an web hosting server and see if your problem is gone.
@abdelalihlaili7952
@abdelalihlaili7952 3 жыл бұрын
error: com.android.volley.timeouterror. help me and thank you for everything
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Hi @abdelali, in most cases this error happens due to connectivity issue. If you are testing on localhost make sure you disable firewall . If that doesn't work, insert the following code before adding the stringRequest into requestQueue. stringRequest.setRetryPolicy(new RetryPolicy() { @Override public int getCurrentTimeout() { return 60000; } @Override public int getCurrentRetryCount() { return 60000; } @Override public void retry(VolleyError error) throws VolleyError { } });
@ezequielbiglia9075
@ezequielbiglia9075 7 ай бұрын
Hello, Do you have a tutorial adding a token??
@SandipBhattacharya
@SandipBhattacharya 7 ай бұрын
Hi there! Thanks for reaching out. In this particular tutorial, we didn't cover the use of tokens.
@grandyearsulatorio6798
@grandyearsulatorio6798 2 жыл бұрын
bro where can we find the network security config file?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Download the source code from the GitHub link added in video description.
@Sport-word
@Sport-word 3 жыл бұрын
Sir where can I find the network_sexurity_config.xml ?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Just create the file: network_security_config.xml with the code shown in video.
@grandyearsulatorio6798
@grandyearsulatorio6798 2 жыл бұрын
can we create the file on notepad sir?
@pratikshadande21
@pratikshadande21 5 ай бұрын
Data doesn't get stored in database??
@SandipBhattacharya
@SandipBhattacharya 5 ай бұрын
Ensure you have XAMPP or WAMP installed to reflect data stored in the MySQL database.
@abhijitsalve414
@abhijitsalve414 2 жыл бұрын
i m getting this issue 'StringRequest(java.lang.String, com.android.volley.Response.Listener, com.android.volley.Response.ErrorListener)' in 'com.android.volley.toolbox.StringRequest' cannot be applied to '(int, java.lang.String, anonymous com.android.volley.Response.Listener)'
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
You may have missed some code, for example, you may miss Response.ErrorListener(). Write it carefully and run the project.
@abhijitsalve414
@abhijitsalve414 2 жыл бұрын
@@SandipBhattacharya I have write all code but now my app is crushed at run time not able to run
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
@abhijit salve, I have uploaded the project on Github. Download it and check with yours.
@robb9412
@robb9412 3 жыл бұрын
how can i put a error when the email already exists in data base
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
You need to loop through the database to check that.
@robb9412
@robb9412 3 жыл бұрын
@@SandipBhattacharya can u teach how to display value from database on textview?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
This video may be helpful in this regard. It shows MySQL database values in Android Spinner. kzfaq.info/get/bejne/gpenicd4t9SrdZs.html
@anjalikv7955
@anjalikv7955 3 жыл бұрын
Could not find volley error in project
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
@anjali, thanks for your feedback!
@amiraummi3003
@amiraummi3003 2 жыл бұрын
Hi, I want to ask why I cant register for a second user? Is it this coding for one user only?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
This code is for any number of users, not restricted to only a single user. I can't say anything without looking into your code.
@amiraummi3003
@amiraummi3003 2 жыл бұрын
@@SandipBhattacharya how to send my my coding for you to check? Im out of idea already how to make it work.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
@@amiraummi3003 Send me a query through my website's contact page. I will revert back.
@imene9939
@imene9939 3 жыл бұрын
sir, please could you tell us how we use shared Preferences to fetch other user data ?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Coming soon.
@imene9939
@imene9939 3 жыл бұрын
Thank you so much @@SandipBhattacharya! could you make it today or tomorrow, I'm really need it?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Here it is. Sorry for the delay. kzfaq.info/get/bejne/rN5oY92CzbOoYHk.html
@imene9939
@imene9939 3 жыл бұрын
@@SandipBhattacharya thank you so much sir
@naj_skcir
@naj_skcir 3 жыл бұрын
i am having an error 'android.valley.timeouterror'. my xampp mysql and apache were both running.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Since you are testing on localhost, turn your firewall off/disable firewall and try again.
@naj_skcir
@naj_skcir 3 жыл бұрын
@@SandipBhattacharya i still have the same error when i turn off both public and private windows defender firewall.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Ok. Make sure Skype is completely closed while running xampp since Skype has known issue with xampp. Another option would be to uninstall xampp and use wamp. If the problem persists, you can send me an enquiry through my website and I'll look into that.
@naj_skcir
@naj_skcir 3 жыл бұрын
sorry for a late thank you. its working now.
@riveracleo
@riveracleo 3 жыл бұрын
@@naj_skcir what did u do
@johnwilfredmaranon7162
@johnwilfredmaranon7162 3 жыл бұрын
I’ve done everything in the video, but whenever I click the login button, it doesn’t log in. Can anyone help me
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Make sure Apache and MySQL is running. In XAMPP control panel you can check that.
@RecklessGamingyt
@RecklessGamingyt 3 жыл бұрын
@@SandipBhattacharya even I'm getting the same error..my xampp is running perfectly.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Find your errors in Logcat and paste here.
@rifkysaputra4925
@rifkysaputra4925 2 жыл бұрын
may i have the xml file? Thank you
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Hi Rifky, I've uploaded the project on Github. Check the link in description.
@tejasbadhe6199
@tejasbadhe6199 3 жыл бұрын
Couldnt understand network security config. Xml. Can you explain it??
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Hi Tejas, check out this video for network security config: kzfaq.info/get/bejne/bLtoYMJ4mt_Op3U.html
@tejasbadhe6199
@tejasbadhe6199 3 жыл бұрын
@@SandipBhattacharya in my program " new Response. Listener()" is coming in black. It is not getting defined. Eroor listener amd Auth failure is also black. So my app runs but values are not getting inserted into database
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Don't worry about new Response. Listener() if it's gray. Check the values you're getting in variables by printing them using Log.d("key", "value") statements and finding them in Logcat.
@tejasbadhe6199
@tejasbadhe6199 3 жыл бұрын
@@SandipBhattacharya myapp is running but when i register always "something went wrong pop ups"
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
@@tejasbadhe6199 Can't say without looking into your code. If you want me to look into it, you can send me a query through my website.
@alvinpadilla3393
@alvinpadilla3393 3 жыл бұрын
I got "com.android.volley.TimeoutError" pls help me guys pls pls
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
After disabling your firewall or Skype try again. Hope it'll work.
@DimasBayuAjie
@DimasBayuAjie 2 жыл бұрын
cant connect. no error but cant login and register
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
1. Turn off firewall. 2. Turn on Apache and MySQL in Xampp Control Panel. 3. Completely close Skype (if you have) And, try again.
@benedictperalta1049
@benedictperalta1049 2 жыл бұрын
When I click the Register its not doing or showing the tvstatus, and when I click the login its not doing anything too
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Check your Logcat statement for errors.
@benedictperalta1049
@benedictperalta1049 2 жыл бұрын
@@SandipBhattacharya the error on the logcat is 0-0/com.android.studio E/AndroidLogcatService: com.android.ddmlib.ShellCommandUnresponsiveException
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Upgrade your Gradle plugin to the latest version or change your emulator.
@linhtran-futule
@linhtran-futule 3 жыл бұрын
It isnt working with my code
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Hi @linh Explain your error.
@grandyearsulatorio6798
@grandyearsulatorio6798 2 жыл бұрын
Where can we get the config file?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Hi, download the source code from Github. Link in description.
@grandyearsulatorio6798
@grandyearsulatorio6798 2 жыл бұрын
thank u brother
@taibihanane6570
@taibihanane6570 2 жыл бұрын
thanks a lot ! I have a problem getting through from login to register
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
What happened?
@taibihanane6570
@taibihanane6570 2 жыл бұрын
@@SandipBhattacharya I did all the steps and there is no error but I can not move from login to register to write informations
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Check the source code and match with yours. Github link in description.
@jafaghalemya6177
@jafaghalemya6177 2 жыл бұрын
Why i can get response.equals failure error?
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Hello, what preliminary research you have done to fix this error and what is the result?
@juanantonioperez-chuecoslo6037
@juanantonioperez-chuecoslo6037 Жыл бұрын
@@SandipBhattacharya Hello sir, I had the same exact problem and I resolved it by clicking on the AI checkbox of id in the phpmyadmin database. This way, the id will acumulate and will be able to insert new data
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
@@juanantonioperez-chuecoslo6037 Thanks for your input.
@lleguekhenlarencec.5792
@lleguekhenlarencec.5792 3 жыл бұрын
where did you get network_security_config file?
@andreeacostaquispe122
@andreeacostaquispe122 3 жыл бұрын
alguna respuesta ?
@astrophel12
@astrophel12 2 жыл бұрын
I don't know what's wrong on my sql query, do you have any recommendations? $sql = "select * from user where user_ID='.$user_id.' and user_password='" . md5($user_pass) . "'"; Everything I inputted goes to "Failed login", even if I placed a correct id(or email) and password. I tried separating the double quotes like this: $sql = "select * from user where user_ID=" .$user_id. "and user_password=" . md5($user_pass) ; but I still get an error.
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Try this: $sql = "select * from user where user_ID='$user_id' and user_password='" . md5($user_pass) . "'";
@astrophel12
@astrophel12 2 жыл бұрын
Most searches shows that I need to parse it to json first, but I think there are faster way.
@NewYouTubeBD
@NewYouTubeBD 4 ай бұрын
Bath login successful
@SandipBhattacharya
@SandipBhattacharya 4 ай бұрын
Okay, good. 👍
@nitesharu1269
@nitesharu1269 3 жыл бұрын
how to get that URL ?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Hi Nitesh, if you're trying to connect it from the Emulator. you can use "10.0.2.2/login/login.php" for connecting to "login.php" file inside "login" folder in your localhost.
@nitesharu1269
@nitesharu1269 3 жыл бұрын
@@SandipBhattacharya I was using actual device so I used localhost/login.php and it worked,thanks🙋🤩🤩
@kurtrhonrodriguez5377
@kurtrhonrodriguez5377 2 жыл бұрын
@@nitesharu1269 what directory you use in the URL bro?
@osamasayed4086
@osamasayed4086 3 жыл бұрын
How do I get the URL?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
In the video. You can use "10.0.2.2/login/login.php" for connecting to "login.php" file inside "login" folder in your localhost, if you're trying to connect it from the Emulator.
@osamasayed4086
@osamasayed4086 3 жыл бұрын
@@SandipBhattacharya I was trying to connect by my mobile, not the Emulator, so there was an error, then I discovered that there is a wireless IP that must be written in the place of localhost, then I solved it and now it works for me
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
So happy to see you found the solution yourself. Congratulation. Keep up the good work. 🙂
@sulikanchannel5148
@sulikanchannel5148 Жыл бұрын
mean while i am trying first...mr.. 🙏
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
Keep up the spirit. All the best.
@pandyasiddharth461
@pandyasiddharth461 3 жыл бұрын
Pls share the source code....
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
For source code, you may send me a query through my website. Thanks.
@the_yb7
@the_yb7 Жыл бұрын
I need this in Kotlin
@SandipBhattacharya
@SandipBhattacharya 9 ай бұрын
I understand! I'll be covering Kotlin in upcoming tutorials, so stay tuned for that!
@homosapien547
@homosapien547 2 жыл бұрын
Source code pls
@SandipBhattacharya
@SandipBhattacharya 2 жыл бұрын
Link in video description.
@kurtlrnzv_
@kurtlrnzv_ 3 жыл бұрын
why does my application doesn't working?
@kurtlrnzv_
@kurtlrnzv_ 3 жыл бұрын
com.android.volley.NoConnectionError: javax.net.ssl.SSLHandShakeException: Trust anchor for certification not found. it is the problem when I am trying to register.
@kurtlrnzv_
@kurtlrnzv_ 3 жыл бұрын
when I am putting the android:networkSecurityConfig="@xml/network_security_config" on AndroidManifest the application it keeps stopping.
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Pls share the url you're using.
@kurtlrnzv_
@kurtlrnzv_ 3 жыл бұрын
@@SandipBhattacharya private String URL = "10.0.2.2:8080/login/register.php"; here sir, what's wrong?
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Try using http instead of https for this link.
@NewYouTubeBD
@NewYouTubeBD 4 ай бұрын
Registration failed
@SandipBhattacharya
@SandipBhattacharya 4 ай бұрын
Check your Logcat statements to pinpoint the error. 🔍
@prasanthprasath7020
@prasanthprasath7020 3 жыл бұрын
Please upload in-app update
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Sure, in an upcoming tutorial.
@prasanthprasath7020
@prasanthprasath7020 3 жыл бұрын
@@SandipBhattacharya thank you
@griiken3187
@griiken3187 3 жыл бұрын
Wo
@TheRh26
@TheRh26 3 жыл бұрын
Sorry it does not work
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
Hello HabibR, You didn't mention the issue you're having, what error message you're getting in Logcat, what preliminary research you did to solve the problem, and where you're currently stuck. Once you address these, we'll be able to understand your problem a little better. Hope you understand.
@TheRh26
@TheRh26 3 жыл бұрын
@@SandipBhattacharya sorry i'll do
@nkp7754
@nkp7754 3 жыл бұрын
u need microscope to watch this tutorial
@SandipBhattacharya
@SandipBhattacharya 3 жыл бұрын
For better experience, use your Pc.
Read/Write Text File from/to Android External Storage
10:43
Sandip Bhattacharya
Рет қаралды 43 М.
Login And SignUp In Android With MySQL
57:21
Codes Easy
Рет қаралды 402 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН
Populate Spinner from MySQL Database in Android Studio
18:38
Sandip Bhattacharya
Рет қаралды 23 М.
Signup and Login with PHP and MySQL
43:16
Dave Hollingworth
Рет қаралды 275 М.
RecyclerView and Volley - Fetching Data from MySQL Database
22:29
Simplified Coding
Рет қаралды 88 М.
South Melbourne v Wellington Phoenix | Australia Cup 2024 Round of 32
Football Australia
Рет қаралды 4,1 М.
Fundamentals of Compose Layouts and Modifiers - MAD Skills
11:56
Android Developers
Рет қаралды 89 М.
Login and Registration in Android Studio
1:53:23
Codes Easy
Рет қаралды 39 М.
Hacker101 - JavaScript for Hackers (Created by @STOKfredrik)
24:17
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 159 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН