Android, PHP And Mysql Tutorial - Retrieving Data From Mysql Database Using Volley Library

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

КОМЕНТАРІ • 99

  • @softwarescience976
    @softwarescience976  4 роки тому +3

    Did it work out for you? Let me know by leaving a comment.

    • @student9297
      @student9297 4 роки тому +1

      Image not show

    • @softwarescience976
      @softwarescience976  4 роки тому +1

      Kindly check whether your URL points to the images in your database. Confirm by copying the image url to your browser. It should load the image if its available.

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

      @@student9297
      Do you have any pictures? I seem to be like you, but the text was successfully caught

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

      @@softwarescience976 Hello there,
      add to cart did you manage to do it?

  • @hanifawaliya7976
    @hanifawaliya7976 3 роки тому +2

    these code is simple to understand, unlike to others they use complicated code so as you hate programming....thanks bro for this simple code, few lines, easy to memorize

  • @arabelromerogalban8503
    @arabelromerogalban8503 3 роки тому +1

    You're the best. Thanks, it worked perfectly for me. Greetings from Cuba.

  • @bhartikumari7018
    @bhartikumari7018 2 роки тому +1

    Cannot resolve method into in String

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

    The error "Value

  • @kushaljaiswal3593
    @kushaljaiswal3593 3 роки тому +1

    How to upload images in database...

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

    How you insert that product in database ?

  • @aariwalker2905
    @aariwalker2905 4 роки тому +1

    good presentation and easy to learn from you
    Keep Uploading Contents

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

    Hello there dear friend. I have a database where i have user table like you, products table like you and i want to connect one more table named results, where in the app a signed in user can give in a gap a number, and i want to be saved in this results table by user id, where user exist in users. Do you have any tutorial like this?

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

    It's helpful, but I don't understand some lines like and Setting_activity code in the home.java

  • @SinyoMoba
    @SinyoMoba 4 роки тому +1

    Wait for the next part sir

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

    Can you also add Search Box?

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

    I want to show messages with clickable link in activity sir. Note: I want to send zoom meeting message from server to android in that I need link able to click and go to browser. Thank you sir .

  • @gabrielmiranda1574
    @gabrielmiranda1574 4 роки тому +1

    RecyclerAdapter is no longer supported? When I try to instantiate mAdapter it only gives the option to manually confifure RecyclerView.Adapter. It cannot be done as you're showing in the video. Can you help me?

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

      Thank you for your comment Gabriel. Is your recycler view adapter class a private class? If so make it public. Also make sure that the class points to the right package.

    • @nico_zxc
      @nico_zxc 3 роки тому +1

      hey Gabriel did u fix it ? I have the same problem too :((

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

      @@nico_zxc Yes I did but I believe I had to code my own recycler adapter. Check the code on his git and see the parts he skipped in the video

  • @forester1
    @forester1 3 роки тому +2

    Your tutorial force me to subscribe

  • @audreylalaineloquias3953
    @audreylalaineloquias3953 3 роки тому +1

    can u make add to cart button like ecommerce app

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

      then it will update the price every items that been adding to cart
      that would be great content

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

      We can achieve it in two ways. Either include a Boolean field to our product item and call it isAdded to cart. We can update this value once a user actually adds the item to cart. Or we can have a separate database table to hold our items in cart.

  • @ريانريان-ق4ذ
    @ريانريان-ق4ذ 4 роки тому +1

    For the login page, can you add the registration by attaching a picture? I mean the user's profile picture in order to use the comment feature .

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

      You can fetch the image from the server and display it like how I did in the tutorial. Or just keep some images in your app that users can switch to. When you need more assistance just ask I'll be glad to help.

  • @sitansusekharbehera7142
    @sitansusekharbehera7142 4 роки тому +1

    Please send me PHP file to insert the items with image please

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

    what is the difference between POST and GET in StringRequest?

    • @hanifawaliya7976
      @hanifawaliya7976 3 роки тому +3

      POST is a method when you send data to database. But. When you want those data from database to display on device. You use GET

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

    hi!! again.
    one more question if i may ask.
    why i get this error ?
    E/RecyclerView: No adapter attached; skipping layout.
    i followed step by step the video.
    thank you!!

    • @softwarescience976
      @softwarescience976  3 роки тому +1

      It simply means you have not attached an adapter to your recycler view. Also check whether you have assigned a layout manager.

    • @sollekram
      @sollekram 3 роки тому +1

      @@softwarescience976 thank you for the fast respond , I will check it out, and I will report back.

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

      recyclerView.setLayoutManager(new LinearLayoutManager(this));

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

    My picture is garbled in xampp, but it can’t come out. What’s the solution?

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

    I am having a challenge. RecyclerAdapter i think is deprecated, instead it is giving me RecyclerView.Adapter{ }..how can i accomplish the same with this?

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

      Your custom recycler adapter extends RecyclerView.Adapter

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

      @@softwarescience976 thank you bro, so how can the code be, if i am not troubling you

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

      Please watch my video on Recycler view.
      ua-cam.com/video/bDTei15xf0A/v-deo.html

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

    I get a php error saying the equivalent variable to $products is undefined at line 34. I believe this is then causing the java not to execute the try block at all in the main java file. Is this a connection issue to the database? Any help would be appreciated.

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

      The java wont execute past the JSONArray array = new JSONArray(response); at the start of the try block.

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

      No, it's not a database issue. There's a variable in line 34 that doesn't match $products and needs to be defined. Check the two variables and make sure they match.

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

    Can I tell you to upload pictures to the PHP and INDEX files of MYSQL

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

    I just stuff how to insert these items in database please suggest.

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

      You write Insert sql on PHP server with parameters. Pass this parameters from android by using hmap.

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

    thanks a lot sir i was fetching data on recycler view from 4 hours and but it is not working,,,,, when i see your video then i remember my mistake and i done my work
    thanks a lot sir

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

    its have got an error , type org.json.jsonarray cannot be converted to jsonobject

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

    Where is a database? You didn't share the Database...

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

    If I want to upload a PHP image like yours, can I show you a PHP file example?

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

    i have this error no adapter attached skipping layout dont know whats the problem -_-

    • @softwarescience976
      @softwarescience976  4 роки тому +1

      Yeah that's because you didn't assign an adapter to your Recycler View before loading your data. Assign the adapter to the Recycler View before calling the method that feeds data into your list.

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

      Tech With Walter i have in my onCreate method before calling the method that feeds data into my list recyclerview.setadapter(myadapter);

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

    where is the insert product in database video?

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

    Can u tel me pliz if volley library is still used now more then http library thnx for information

    • @softwarescience976
      @softwarescience976  4 роки тому +1

      Yes volley is still being used. It's a good library and gets the work done. You can as well use Http, this depends with what you are trying to accomplish. Why don't you research on the advantages of using volley library. You've done well to ask.

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

      Tech With Walter thnx so much for asking count me i need it to retriev data from data base mysql into recyclerview but when i run it nothing shown i dont know whats the problem have any tut for this one thnx sir 💪🙏

    • @softwarescience976
      @softwarescience976  4 роки тому +1

      @@mimabouyahmed7434 Check whether your Recycler View adapter is properly initialized after you have set up internet permissions in your Manifest file. Best of luck.

    • @mimabouyahmed7434
      @mimabouyahmed7434 4 роки тому +1

      Tech With Walter thank u so much sir i added anything in my manifest file i have just added internet permission thnkk u sirrr💪💪

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

    Please help me how to add these products to cart ...

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

      Hi, you can add a new field in your database and once a user clicks on add to cart you can insert that product to your database.

    • @leahley1352
      @leahley1352 3 роки тому +1

      Thank you so much

    • @leahley1352
      @leahley1352 3 роки тому +1

      Sir I tried it...its not working could you please elaborate ....please please

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

      @@leahley1352
      And I'M also

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

    Will the products show up if I open the app using my phone?

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

      Yes, they should.

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

      @@softwarescience976 Also, is it possible to implement a searching filter?
      For example, if user only wants to see products with the name 'X' or if user only wants to see products with the price range from y to z, or maybe even both (products with the name 'X' and price range from y to z)

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

      Yes it is.

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

      @@softwarescience976 Is there any video/tutorial on that topic? That would really help a lot because I need it for my final project.

  • @mahmoudkab1436
    @mahmoudkab1436 3 роки тому +1

    Thank you.

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

    Thanks

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

    Does this work the same if I use a listView?

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

    Source code please and please cource crud

    • @softwarescience976
      @softwarescience976  4 роки тому +1

      Source code is now available at the description. Your feedback has been valuable. Great job.

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

    Hey its been 9 months ...I am still waiting for next part of this tutorial

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

      Understood. Next I'm planning to start on MVVM app architecture using Kotlin so be alert.

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

    sir im having problem in implemetations this is the message :
    Execution failed for task ':app:checkDebugAarMetadata'.
    > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
    > Could not find com.andriod.volley:volley:1.1.1.
    Searched in the following locations:
    - dl.google.com/dl/android/maven2/com/andriod/volley/volley/1.1.1/volley-1.1.1.pom
    - jcenter.bintray.com/com/andriod/volley/volley/1.1.1/volley-1.1.1.pom
    Required by:
    project :app
    Possible solution:
    - Declare repository providing the artifact, see the documentation at docs.gradle.org/current/userguide/declaring_repositories.html

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

      This is the code inside in gradle
      apply plugin: 'com.android.application'
      apply plugin: 'com.google.gms.google-services'
      android {
      compileSdkVersion 30
      buildToolsVersion "30.0.0"
      defaultConfig {
      applicationId "com.example.mswdmobileapp"
      minSdkVersion 25
      targetSdkVersion 30
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
      release {
      minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
      }
      }
      }
      dependencies {
      implementation fileTree(dir: "libs", include: ["*.jar"])
      implementation 'androidx.appcompat:appcompat:1.1.0'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      implementation 'androidx.recyclerview:recyclerview:1.1.0'
      implementation 'com.google.android.material:material:1.1.0'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      implementation 'com.google.android.gms:play-services-maps:17.0.0'
      implementation 'androidx.gridlayout:gridlayout:1.0.0'
      implementation 'androidx.navigation:navigation-fragment:2.2.2'
      implementation 'androidx.navigation:navigation-ui:2.2.2'
      implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
      //volley
      implementation 'com.andriod.volley:volley:1.1.1'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test.ext:junit:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
      }

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

      Please watch this video it will guide you on how to add volley library to your android studio project : ua-cam.com/video/G-GBYqnkZYw/v-deo.html

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

    Android + java + netbeans

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

    E/RecyclerView: No adapter attached; skipping layout , this error came how to solve? sir,

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

      Hello, just add an adapter to your recycler view.

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

      The compiler is trying to tell you that your recycler view does not have an adapter attached to it. So it skips it. Solution: Add this line: yourRecyclerView.setAdapter(yourAdapter)

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

      @@softwarescience976 tq so much sir

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

    How you insert that product in database ?

    • @azimshaikh9465
      @azimshaikh9465 3 роки тому +1

      manually in his case, or else you can make a php page with a form and upload the data i guess