Android MySQL Database Tutorial 2 - Android Login with PHP MySQL

preview_player
Показать описание
Code -

Hi welcome to this short series on Android MySQL Database Tutorial for beginners. In Android PHP/MySQL Tutorial I will use PHP to create a back-end rest server. In this first video I will show How to Create Android Login page with PHP MySQL. It is the Best tutorial for android PHP and MySQL. This tutorial series will cover How to connect Android app to MySQL database?, Android Tutorial - Connect Android to MySQL Database, Android Login and Registration with PHP, MySQL , Android Login Form Tutorial with MySQL and PHP, How to create Simple Login form using php in android, android studio mysql connection, android php mysql json tutorial, Android Login and Registration with PHP, MySQL.

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

The likely reason many people are having issues with this code is that the AsyncTask was deprecated from API 30. There is a new method that I am looking into at the time of writing this post.

When I ran an emulator with Lollipop (API 22) it worked.

I don't have a solution for the latest API version, but perhaps the author could post an updated video.

Thanks #ProgrammingKnowledge, this was an amazing video despite the version change.

emilyandnugget
Автор



Also you need to include clear text. In your manifest file, add this

in the application tag. make sure you use this and not android:allowClearUserData as this is the first thing that you can tab complete if you type clear.
hope this helps

zachys
Автор

For those who stuck, try check if the button created has a onclick action linked to the onlogin method, it was shown in the code shared but never shown in the video

jinqwem
Автор

For everyone who has the problem on just the title of the alert dialog appears, put this in yout Manifest application tag. Like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
<uses-permission />
<application
...

...>
...
</application>
</manifest>

Or see this guy link:

victorgraphics
Автор

Solved it! I changed my emulators API level and it worked

haruthakobyan
Автор

your voice is so kind and u are explaining realy good, keep going man !!!

MuslimMan
Автор

this code is working well thank you so much! (if u guys have a problem, try to use ur PC and ur Phone in the same internet wifi connection) :)

thesafwan
Автор

to every people who have a blank space in their AlertDialog when they use a device, but it works fine and write "Login successfull" when they use an emulator, it's normal!! Don't panic, the tutorial works perfectly. It's just that the device works on wifi, and then doesn't have access to the database because it doesn't have access to the PC localhost..

CriustisSmillaH
Автор

very great tutorial ... you are the best on all the world in connect the android app with mysql
....Thank you

zainab_ashwirf
Автор

I have a question. I tried using this method but I'm not able to get the value of the result string from the doInBackground method into MainActivity. how do I do that? I essentially want to take the string value for 'result' that was received in BackgroundWorker and save it to a variable in MainActivity

venkatramanramu
Автор

You saved me, I was trying all day connect my phone to PHP, ohhh that was pretty hard. Thanks you, you made my day. (when i said day, i meant day and half of night. It's 3AM here)

martincerny
Автор

my dear folks. He proofed that his code is working perfectly.
I also did it, and it works, on my webserver.
When you forget to do only a semicolon, a doubleacent or just one letter, it messes up the whole code. example for me, I forgot the "&" in the android url. I always got "login not sucess".

Thanks for the tutorial!!

smileI
Автор

Code is working if someone find any difficulty they should check exception in verbose regaring FILEIOException or connection problem

aahsan
Автор

THANKYOU VERY MUCHH. FINALLY I CAN RUN MY PROGRAM 😁

muhammadadipsofaalkhilmi
Автор

This is by far the best tutorial avaliable on android database connection

ankulgupta
Автор

Guys i solved my problem with login message not showing, my mistake was kind of stupid lol towards the end i lost focus and closed the video and when i came back i skipped the few seconds at the end which involve the onPostExecute. Make sure ypu modify that at the end just before he allows android to connect to INTERNET. this said thamks man for the tutorials.

Tlion
Автор

thank you so much for this tutorial.i have a problem. everything is in code is ok but when I run my app it crashes .what should I do and also I am using xamp server instead of wamp server some plz help me..

ahmedbilal
Автор

Im running it on my mobile but it shows only login status title y this is not showing about connection success or not?

anjurawat
Автор

Help me bro again,

@Override
protected void onPostExecute(String result){

alertDialog.show();
}

On real device String result gives null, what the reason, please help bro

tohiradbujaborov
Автор

when i am using emulator, everythings working fine.
but when i use device result is returning null
what to do?

manojatmakuri