Android MySQL Database Tutorial 3 - Connecting Android App to Online MySQL Database

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 180

  • @richmelchr
    @richmelchr 7 років тому +10

    I can't believe I found a toturial for doing EXACTLY what I needed to do with all the same services and interfaces.

  • @ROBOAIMDRAGO
    @ROBOAIMDRAGO 9 місяців тому

    broo seriously that helped me a lot thank you so much for sharing your knowledge

  • @furkansenocak6824
    @furkansenocak6824 4 роки тому +2

    you are breathtaking

  • @mayalessa9565
    @mayalessa9565 7 років тому +3

    very useful tutorial.. I am new in mysql db and your videos #1 on my favorite list ^^

  • @ahmedkhan-ew5yt
    @ahmedkhan-ew5yt 5 років тому

    very useful sir, i have really enjoyed.

  • @wissou2931
    @wissou2931 7 років тому

    thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuu you're the best !!! thumbs up !

  • @kamellotfi4993
    @kamellotfi4993 7 років тому

    very cool you are the best

  • @venkatramanramu9424
    @venkatramanramu9424 2 роки тому +2

    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 that was received in BackgroundWorker and save it to a variable in MainActivity

    • @tjmcode5187
      @tjmcode5187 Рік тому

      Maybe too late but can help others. In your php convert your response to json before echoing and in Java get that. Note it will be converted to json array so know how to handle it in Java. know to send that to MainActivity, your contractor has to take two parameters. One will be the context and the other will be an instance of your mainActivity.

  • @vincentvanwyngarden589
    @vincentvanwyngarden589 8 років тому

    Really helpful.
    Thanks a lot for making this video.

  • @melusimgwenya5844
    @melusimgwenya5844 5 років тому

    indians so good at coding

  • @jhinoventura
    @jhinoventura 7 років тому +2

    Great Video!
    Worked fine for me.
    One question though.
    Let's say I wanted to put the php files in a different directory.
    For example a directory called Android.
    How would I navigate there ?
    thx in advance!

  • @as269
    @as269 9 років тому +3

    thanks for your videos sir
    i hope you make tutorials about android connection to sql database using web server

  • @moremansi81
    @moremansi81 4 роки тому

    Thank you sir

  • @parthaceo2090
    @parthaceo2090 8 років тому

    thank you sir.
    its helpful

  • @MOATAZ.ASHOUR
    @MOATAZ.ASHOUR 9 років тому

    thnx for this amazing videos 👏👏

  • @YusuflaOyunZaman
    @YusuflaOyunZaman 4 роки тому

    my database only allow to access from my ip not another ip adresses. Is there any solution for this problem? ı m using centos web panel.

  • @thewebcreator2825
    @thewebcreator2825 2 роки тому

    Can we connect existing firebase data to my own hosting server

  • @16pxdesign
    @16pxdesign 7 років тому +1

    I want to create the simple app which sends and receive data from MySql DB.
    But, now I have the problem with which kind of connection to choose.
    Which one is more popular or the best for Android apps?
    What when I do not have WebServer, only DB access? Is it worth of that to create web service for one simple app?
    Data should be sent in a background but I was read about Asynch and people said it`s not good practice to use this because of a memory leak. What instead?

    • @16pxdesign
      @16pxdesign 7 років тому

      I mean one of them is using php script and phrasing get post

  • @danielmwinzi9223
    @danielmwinzi9223 3 роки тому

    Can use jdbc instead of php

  • @someshvarvashisht6726
    @someshvarvashisht6726 8 років тому

    Awesome Bro!

  • @AbdullahSteerly
    @AbdullahSteerly 2 роки тому

    im using hostinger "single shared hosting" what it is not working at all any ideas?

  • @therealgg13
    @therealgg13 7 років тому

    very helpful!

  • @kamleshvora1919
    @kamleshvora1919 7 років тому +1

    Thank you so much :)

  • @bibhuti991
    @bibhuti991 8 років тому

    Will you please tell me some online server database website in which i can make my own database freely for testing purpose...if its of smaller size...doesn't matter....plz give me some website names.

  • @brosnan23
    @brosnan23 7 років тому +2

    So in this step we need to have Web that already been hosting right? Hmm

    • @qurankarim763
      @qurankarim763 4 роки тому

      Yes, you need for web site to access remote data

  • @subhasissidhu
    @subhasissidhu 4 роки тому

    I am tring to launch the app after setting the same in my C Panel Hosting..
    it is working fine in my computer ..But when want to launch same in mobile..
    Result coming only "login Status"
    But Log in success or not success message is not appearing..need help
    also need guide to store information in C Panel database from my Android studio..

  • @avijitsamanta8784
    @avijitsamanta8784 5 років тому +1

    This is not working for me. When i run this app then it will show "This site requires javascript to work".

  • @AbikersPOV
    @AbikersPOV 7 років тому +2

    i have a wammp server on my pc but want to test this on my mobile phone. how do i change the string login_url to connect from my phone to my pc with wamp server?

    • @jahnavireddy5127
      @jahnavireddy5127 6 років тому

      AbikersPOV do you know now what the answer is?

    • @ahmedsalama8686
      @ahmedsalama8686 6 років тому

      get your ip address using ipconfig/ifconfig from the terminal
      also change the line "require local" to "require all granted" in your httpd-vhosts.conf file in the apache tools
      hope this helps :)

  • @georgeplakojohn7534
    @georgeplakojohn7534 8 років тому

    can i show the message "login successful" on the app instead of an alert window with this code?

  • @FairoozZafar
    @FairoozZafar 8 років тому

    hi. I have a database where images are uploaded. i want to get notification on my android app when a new image is uploaded. like a push notification. can you help me with this please?

  • @ahsannazir4025
    @ahsannazir4025 6 років тому

    How can i start new activity depending upon result of login script. For example if username passwor is correct, new activity should be started otherwise error message. I know how to start activity. and my connection with login.php is fine

  • @mangeshdhasade8384
    @mangeshdhasade8384 4 роки тому

    Can we connect two application using database to each other reply plz

  • @mariacomparan7204
    @mariacomparan7204 4 роки тому

    Does anyone know if this video also works with XAMPP process and not WAMP? in this case just asking because I did put my .php files in the htdocs folder

  • @manishdpsg
    @manishdpsg 5 років тому

    Thanks for your support. Can you send me the link where there are multiple pages and there is a hyperlink. Thanks one again

  • @preetamkumarjoshi2976
    @preetamkumarjoshi2976 7 років тому

    sir i am useing free web hosting and free domain,and i have two php file which save data in database and another retrive data if i am see these files in website then it will give responce as localhost but when i am save url of these file in android studio project then it give some error
    the errror is like "this site requires javascript to work,please enable javascript in your browser or use a browser with javascript support" please suppot me sir frequently please

  • @hassimangni7237
    @hassimangni7237 8 років тому

    hi sir can you help how to make and classrecord apps ... ???

  • @afihisam3169
    @afihisam3169 6 років тому

    can it run on online database ? , hosting(cpanel) ?

  • @chaymaelakrafli7320
    @chaymaelakrafli7320 7 років тому

    bonjour,merci pr ce cours;
    je voudrais savoir comment relier une database a mon applicationa ndroid map ;autrement dit , les coordonnees de mes positions sont stockers dans la base de donnee et je vousrais les afficher sur map .? comment faire? merci de me repondre

  • @prakaashm9346
    @prakaashm9346 7 років тому

    tysm working fine

  • @purplefurture6960
    @purplefurture6960 4 роки тому

    Is your database on online server?

  • @santosh969
    @santosh969 6 років тому

    hi in my local host it is working but online i had uploaded scripts and php scripts are working online perfectly i
    had tested by applying if conditions to both scripts but i am giving my domain name instead of ip but it is not working
    error: blank login status
    string url not working online

  • @thomasdorissen5450
    @thomasdorissen5450 8 років тому

    Right? Right.. Right? RIIIIGHHHHHTTTTTT.. RIGHT?
    (Funny, thanks for helpfull vids)

  • @sreenarendranathgoparaju7362
    @sreenarendranathgoparaju7362 6 років тому

    im just getting an alert box Login status but nothing is coming weather login successful or not plss help me i just bought hosting from 1 month in godaddy

  • @firdanurbaiduriintani7691
    @firdanurbaiduriintani7691 7 років тому +4

    mine is unsuccessful. it just show login status. how can i fix it? when i try to change the url into ip address of the website, it show some message. can anybody help me?

    • @yinjenxie4872
      @yinjenxie4872 6 років тому +1

      What message does it display?

    • @luyanda.t.mkhize4587
      @luyanda.t.mkhize4587 6 років тому

      dont copy the code on the link follower his steps the code in the link has a problem

  • @prateekanand4979
    @prateekanand4979 5 років тому

    Could you please do it with aws

  • @pratikwadibhasme3328
    @pratikwadibhasme3328 7 років тому +1

    I am getting file not found error.. My android device and laptop(on which wamp server is running) are both connected to same wifi. However when i am trying to access the url : my_ip_address/login.php, i get correct response from wamp server

    • @jahnavireddy5127
      @jahnavireddy5127 6 років тому

      Pratik Wadibhasme could you please explain it clearly how did you get the correct response?
      I used the IP address of my computer (by typing ipconfig in command prompt).I connected net of phone to computer.(Both are in same n/w).But my app is stopping when I click register button.
      Can you please help?

  • @serMaellegant
    @serMaellegant 6 років тому

    this is not working for me. When I run the app pointed to the web hosted server I get login not success. I've double checked all passwords...any ideas?

  • @alirazaabbasi2872
    @alirazaabbasi2872 6 років тому

    every time I press login button I dont konw why it always give me login unsuccessful (which i put in else condition in php file).

  • @bibhuti991
    @bibhuti991 8 років тому

    what is the meaning of this line?is it necessary?BufferedRaeder bufferedReader=new BufferedReader(new InputStreamReader(inputStream, "iso-8859-1"));please help?

  • @aniket7390
    @aniket7390 8 років тому

    got a login success but after that their is some kind of code in their(Analytic code) how to hide it

  • @ken567ful
    @ken567ful 8 років тому

    Do i need a premium account to host or I can just use a offers free web hosting sites that have a mysql database and phpmyadmin

  • @johnpaularcilla5778
    @johnpaularcilla5778 4 роки тому

    how can i open a new activity after logging in? Thank you

  • @chihabahmed5207
    @chihabahmed5207 7 років тому

    Hi there, i have a working login/register android app with php and sqlite, (locally), i have an account with godday, i uploaded my server files, and changed the db connection, but i am unable to acess the database from my andriod phone. is that an issue with remote access or i must have done something wrong. thanks

    • @kartikagarwal4575
      @kartikagarwal4575 7 років тому

      did u add user to your database privilege after creating it??

  • @zakzack2222
    @zakzack2222 8 років тому

    How do I retrieve data from MySQL database using android studio?

  • @ajaxkm
    @ajaxkm 7 років тому +6

    Mine isn't working. I have godaddy too and did what you did. but my login button only display status.

    • @faquihoussama1687
      @faquihoussama1687 7 років тому +2

      i have the same probleme

    • @RahulYadav-ex7sl
      @RahulYadav-ex7sl 7 років тому

      same situation its the NotTrustedException related to SSL its not able to extablish proper connection

    • @ElTexMexAlex
      @ElTexMexAlex 7 років тому

      Rahul Yadav Sounds like it, is there a fix to it? Don’t tell me I have to buy the SSL? Either way I will still be able to continue working on my app.

    • @yinjenxie4872
      @yinjenxie4872 6 років тому

      Apparently, you cannot seem to connect with your database.

    • @oldtowndude4631
      @oldtowndude4631 6 років тому

      Have turned internet connection in your emulator ? Try to turn your wifi / data on in your emulator

  • @Scott-zi7xv
    @Scott-zi7xv 4 роки тому

    I can't find the PHP file if I enter the URL in searchbar (like the IP/login.php), anyone has a fix?

  • @hridaysarma1839
    @hridaysarma1839 4 роки тому

    i did exactly the same and its giving file not found exception

  • @krishankumar-gv8pe
    @krishankumar-gv8pe 6 років тому

    Can you tell me about login successful and go to new activity(home activity)

    • @dyaa_unison5580
      @dyaa_unison5580 5 років тому

      did you figure out how to move to a new activity when login success?

  • @maria_germany
    @maria_germany 9 років тому

    лайк, программисты

  • @samstutorials1611
    @samstutorials1611 8 років тому

    I am having a problem:
    When I connect the app to my local server it works well, when I connect the app to the server hosted on free we hosting it returns some garbage in the alert box. I created a dummy php script that posts the same data that the android app is posting and it worked fine. Can someone please help me?
    Thank you very much

    • @visheshsharma5234
      @visheshsharma5234 3 роки тому

      I am having the same problem... Did you find the solution??

  • @shadowstorm3158
    @shadowstorm3158 5 років тому

    My application just crashed when i hit login button please help

  • @priyasodhi
    @priyasodhi 8 років тому

    Hi. I am not able to register. When i click on register button, no msg is shown just the preexecute msg is displaying, and while login. my login is failed msg is showing.

  • @Modzilla99
    @Modzilla99 7 років тому

    everytime i try i get this File not found (404 error)

  • @jakeshgowda3605
    @jakeshgowda3605 5 років тому +1

    This video is really helpful ,but instead of showing a toast message I want to open next activity. So, how can I achieve that?

  • @apcs9973
    @apcs9973 6 років тому

    I am getting a blank status message. I am using godaddy.

  • @eunardayangco2987
    @eunardayangco2987 6 років тому

    Sir, how do I connect this mysql database online into netbeans?

  • @giovanninarain9397
    @giovanninarain9397 4 роки тому

    Is this tutorial eventually going to talk about a remote access to the Mysql database?

    • @qurankarim763
      @qurankarim763 4 роки тому

      Yes, it's telling how access or read remote MySql database using java android

  • @andrealonghin7525
    @andrealonghin7525 3 роки тому

    You can't see all the code .... how can I see it?

  • @Giri98
    @Giri98 6 років тому

    how we can pass the result into another java class?

  • @officialzaim4308
    @officialzaim4308 9 років тому

    Is this server works only when your computer is online?

    • @jopwolterink5270
      @jopwolterink5270 8 років тому

      +official zaim No it works almost !

    • @officialzaim4308
      @officialzaim4308 8 років тому

      +Jop Wolterink I'm sorry. I'm really new to programming. I still don't understand how it's work

    • @jopwolterink5270
      @jopwolterink5270 8 років тому

      I also official zaim​

  • @bjcreative4173
    @bjcreative4173 5 років тому

    Sir How Can i Check mySql database User Name or Password in Cpanel..??

  • @okanseref1381
    @okanseref1381 5 років тому

    It always returns null. Is there a solution?

  • @AymanShaabanELsayedDEVELOPER
    @AymanShaabanELsayedDEVELOPER 6 років тому

    Where is english subtitle it help up, please provide this video with it.

  • @ganeshwagh7746
    @ganeshwagh7746 8 років тому +2

    i have shown on "login status" alert box bot not show" login success" message

    • @sreenarendranathgoparaju7362
      @sreenarendranathgoparaju7362 6 років тому +2

      its not showing in actual android device alsoo plss help me : (

    • @apcs9973
      @apcs9973 6 років тому

      have same problem, were you able to resolve it?

    • @elaijahwashere834
      @elaijahwashere834 5 років тому

      @@apcs9973 little late
      but i had the same problem but was able to solve it with that forum
      stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted

  • @jalajgupta3206
    @jalajgupta3206 8 років тому

    hello sir i want to upload as well as text data so please send video for upload image

  • @acevonbisona7733
    @acevonbisona7733 8 років тому

    is godaddy server free?

  • @rushidesai2836
    @rushidesai2836 8 років тому

    I tried this on an online hosting site.
    But after clicking 'Login' button.. my alertdialog shows message "This site does not support Javascript....."
    Any help??????????

  • @RahulYadav-ex7sl
    @RahulYadav-ex7sl 7 років тому

    its not working show filenotfound exception

  • @anthrax20042002
    @anthrax20042002 7 років тому

    Hello. Good tutorial but i have a problem im getting an error:
    Error:(25, 25) error: non-static method execute(Params...) cannot be referenced from a static context
    where Params,Progress,Result are type-variables:
    Params extends Object declared in class AsyncTask
    Progress extends Object declared in class AsyncTask
    Result extends Object declared in class AsyncTask
    its about:
    BackgroundWorker.execute(type, username, password);

    • @anthrax20042002
      @anthrax20042002 7 років тому

      I resolved alone afterall :P to be honnest i dont know what was the problem ... i retyped it and worked

  • @rabalfrancisco1034
    @rabalfrancisco1034 8 років тому

    Sir. how can i run my app on a real android device and not in emulator

  • @camilletiongson871
    @camilletiongson871 8 років тому

    How do i go to another activity on android?

    • @Larph13
      @Larph13 7 років тому

      create a new activity, then create a method with an intent inside it calling the 2nd activity, then calling the method you just created to your main method in the 1st activity

  • @rimaibrahim3978
    @rimaibrahim3978 8 років тому

    Hi I hope someone can help me . My webserver is hosted online but when I send the login info I get a long message that I think is sent as HTML format and basically it says "This site requires JavaScript to work please enable javascript in your browser" any idea how I can get the actual response e.g "login successful"

    • @samstutorials1611
      @samstutorials1611 8 років тому

      +Reema Domino Did you fix the problem?
      I am having it also.
      Thank you

    • @rimaibrahim3978
      @rimaibrahim3978 8 років тому

      Sami Kanafani yeah you can actually get is as HTML format from Android studio then copy it and paste into a new HTML page so you can see the actual response. Mine showed some error msg or something wrong I can't remember what it was .

    • @rimaibrahim3978
      @rimaibrahim3978 8 років тому

      Sami Kanafani after you fix whatever error in the code you will get the login successful msg.

    • @ChiragMakhija
      @ChiragMakhija 8 років тому

      Having the same problem. Any solution as of yet?

    • @ChiragMakhija
      @ChiragMakhija 8 років тому

      Hi, did you find the solution?

  • @rajakrishnanu1929
    @rajakrishnanu1929 8 років тому +2

    how to upload image Online Mysql Database.

  • @jopwolterink5270
    @jopwolterink5270 8 років тому

    How can i open a new activity when i click on the button "login" ?

    • @rehadaniel1685
      @rehadaniel1685 8 років тому +1

      +Jop Wolterink simply add startActivity(new Intent(this, NewActivity.class)) to your buttons onClick method

    • @jopwolterink5270
      @jopwolterink5270 8 років тому

      Reha Daniel​Yes, but i want only open a new activity when the password is correct.

    • @rehadaniel1685
      @rehadaniel1685 8 років тому

      then add startActivity() to an if statement, something like:
      if(passwordTextView.getText() == correctPasswordString)
      {
      startActivity(etc...);
      }

    • @jopwolterink5270
      @jopwolterink5270 8 років тому

      Reha Daniel​okey thnx

    • @rehadaniel1685
      @rehadaniel1685 8 років тому

      No problem

  • @piip4
    @piip4 6 років тому

    Why not use wamp?

  • @AA-ux5dj
    @AA-ux5dj 8 років тому

    can anyone has that background java file shown in this video at 13:22

  • @pauricboyle339
    @pauricboyle339 8 років тому

    Every time I click login it says login failed even though i have the correct details inserted

    • @kedarnadkarny4718
      @kedarnadkarny4718 8 років тому +1

      +Pauric Boyle Did you find the solution? I am getting the same error. Code is working fine on localhost.

  • @vivins3215
    @vivins3215 5 років тому

    Is it is free or cost any money
    ?

  • @bhagwatilogisticstransport6501
    @bhagwatilogisticstransport6501 8 років тому

    Hello Sir
    I purchased a economy hosting from godaddy And Now I want to connect it with php Now I followed you as you have explained in video but it did not work for me . Will you give me any other idea about connecting the database with php
    I watched your video that how to create database in cpanel
    You are an Indian I'm also an Indian.
    So You should help me in this because everyone help each other

  • @2k4you1
    @2k4you1 7 років тому +1

    Do I really have to buy cpanel to do this tutorial?

    • @santosh969
      @santosh969 6 років тому

      you can have free cpanel too

  • @codervlogs
    @codervlogs 6 років тому

    sta da niya kuss ao majburi daaaaaaaaaaaaaaa ao warka dang

  • @alexanderadams4583
    @alexanderadams4583 7 років тому

    after clicking the login button, my app crashes. Did anyone else run into this issue?

    • @חסןפדול
      @חסןפדול 7 років тому

      this video before year ago ,Maybe some of codes are changed! i am learn an application programmer,but we don't learn the mysql yet.but maybe your problem at the php code

    • @aakashmaheshwary5416
      @aakashmaheshwary5416 6 років тому

      I am facing same problem

  • @amansahu7063
    @amansahu7063 7 років тому

    i have error "java.io.FileNotFound exception" in the Url despite of uploading the necessary php file in the webhost cpanel kindly help me.
    i have used the same code as well

  • @gujaratilanguagejavaprogra2156
    @gujaratilanguagejavaprogra2156 8 років тому

    Hi, I got very good knowledge from your Android Studio Tutorials, and i
    have started making apps in Android. But I am getting
    java.net.UnknownHostException when i am trying to fetch my login.php
    file from 000webhost.com. So please try to solve this query and answer me as soon as possible.

    • @saravananraj7470
      @saravananraj7470 7 років тому

      hi i created a account on 000webhost.com and created database and using file manager i have created the login.php and conn.php.Where I have to save the files and what is the server name in conn.php and what is the login url in backgroundworker.java?Can you please help me out?my email id is:saravananraj2196@gmail.com

  • @NhloniphoSonke
    @NhloniphoSonke 8 років тому

    somebody got a flue...

  • @sen9004
    @sen9004 6 років тому

    where sub ? :(

  • @anasshamsi122
    @anasshamsi122 6 років тому

    So many ads

  • @aksa706
    @aksa706 8 років тому

    God damn it, I'm just getting connection unsuccesful and login unsuccesful

    • @aksa706
      @aksa706 8 років тому

      Turns out that I needed to put "localhost" as server_name, since the website host is hosting the database also(localhosting).

    • @sabril6474
      @sabril6474 7 років тому

      same goes with me..but why is it local host again? can u explain to me in a simple word? Tq

    • @TRchotbal
      @TRchotbal 7 років тому

      A localhost means the place where the host server is running. So if you use Wamp or uWamp or other hosting applications and host it on your pc, the localhost is your own pc machine. But when the hoster at this case is godaddy, the localhost is pointed to their hosting server.

  • @muhammadihsan8634
    @muhammadihsan8634 6 років тому

    Bhai ap ka whatsapp number kiya ha muje ap ki help chahiey please

  • @zakzack2222
    @zakzack2222 8 років тому +6

    How do I retrieve data from MySQL database using android studio?

    • @rvb5435
      @rvb5435 8 років тому +4

      androidbash.com/connecting-android-app-to-a-database-using-php-and-mysql/