Тёмный

RecyclerView and Volley - Fetching Data from MySQL Database 

Simplified Coding
Подписаться 118 тыс.
Просмотров 88 тыс.
50% 1

Check the updated tutorial from here
bit.ly/2NUasrg
In this video we will learn fetching data from MySQL database in our Android Application.
For the server side we are using
- PHP and MySQL with XAMPP Server
For android side we are using
- Volley Library
- Glide Image Loading Library
- RecyclerView to display the data that is fetched
In this video I will use the same project that I created in the RecyclerView and CardView tutorial. So it is highly recommended that you should go through that video first. You can go to the video from this link.
• Android RecyclerView a...
For the source code and other details visit
www.simplified...
If you found this video helpful then please LIKE and SHARE.
And don't forget to follow us on
Facebook: / simplifiedcoding.net
Twitter: / codesimplified
Google: plus.google.co...

Опубликовано:

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 199   
@SimplifiedCoding
@SimplifiedCoding 5 лет назад
Check the updated RecyclerView Tutorial with New Material Design and Kotlin Visit this link: bit.ly/2XJrEoc
@student9297
@student9297 3 года назад
?
@sharookelbessa7472
@sharookelbessa7472 4 месяца назад
ff
@umbrerax
@umbrerax 4 месяца назад
6 years later, still works like charm, tysm bro
@awaisyousaf
@awaisyousaf 6 лет назад
Thanks, A lot Bro! You did an amazing job explaining the method and this was exactly what I was looking for since I couldn't properly grab results individually. This explains all in one.
@asifiqbal1261
@asifiqbal1261 7 лет назад
It's really helpful. Thank you Sir, appreciate your teaching.
@sinamohammadzadeh1813
@sinamohammadzadeh1813 6 лет назад
Thank you sooooooooo much, You Indians are perfect teacher.
@areebashaikh4950
@areebashaikh4950 6 лет назад
Thanks alot!!! u are saviour !! :) Thanks for these tutorials u are code and videos always helped me i learned alot from your videos and tutorials
@equus8566
@equus8566 6 лет назад
Hello sir, I am not using image URL but I want to fetch images from MySQL database in recycler view plz help me
@94717050766
@94717050766 5 лет назад
equus even i want to know how to do this
@md.rejaulkarim9215
@md.rejaulkarim9215 5 лет назад
Good tutorial. Jazak'Allah Khairan.
@thebestreymisterio
@thebestreymisterio 6 лет назад
Thank you man, your work is helping me a lot.
@rajatsonu01
@rajatsonu01 2 года назад
the code is not working , not showing errror but in run log showing = E/RecyclerView: No adapter attached; skipping layout
@210023155
@210023155 6 лет назад
Thanks you very much sir, you saved me so so much.....
@abhishekaryan7575
@abhishekaryan7575 5 лет назад
Nice tutorial helped me lot..thanks sir
@kenchen9766
@kenchen9766 5 лет назад
Hi Sir, What could be the problem if I cannot get the Json output as your's with php?
@filipusjulio2730
@filipusjulio2730 5 лет назад
sir my image not display or adapter attach skipping layout, but my textview is display. how to solve it?
@nodatch
@nodatch 3 года назад
Hello. I'm newbie in android studio, is this project need the mobile application to add/insert data from mysql and not a web application to insert data from the mysql database? I copy what is in the tutorial but nothing displays in my app. Could you please answer my problem?
@arvindthakor2782
@arvindthakor2782 7 лет назад
Very Useful Tutorial And Easy To Understand for all ....I Done Completely This Tutorial But at the end The Images take Too much Time To Load In Recyclerview...... Can U Help Me Out Sir...!!????
@arvindthakor2782
@arvindthakor2782 7 лет назад
Yahhh Solved It....
@67Diadem
@67Diadem 3 года назад
I have question, If we want to use number of views or number of visitors on any product how to do that? I mean where to code in which class like adapter class or main activity class. I know to count the visitors or views on any product after clicking on the item we need different API to post the data. So can you tell me where to put the POST method data in which class and how to do it please....
@18PregnantAndProud
@18PregnantAndProud 4 года назад
the code shows no error, but the cardView does not appear on my activity. Why ?
@jerrytorres7083
@jerrytorres7083 3 года назад
hi i know this is a months late but i stumbled upon your videos, and i wonder if its possible to display an image without using RecycleView(like a user information interface). im new to Android programming and im having a hard time grasping the idea of RecyclerView
@97fatezz
@97fatezz 5 лет назад
I did follow your instructions but the result shows nothing with error.. it says this in the (4: Run) E/RecyclerView: No adapter attached; skipping layout
@muhammadsaqib766
@muhammadsaqib766 5 лет назад
Thanks a lot, bhai. very clear. Jazak Allah :)
@sunilmahur9024
@sunilmahur9024 3 года назад
Dear Sir, How to send Serializable data from edit text in to MySQL database via Volley Lib.
@ramy_c148
@ramy_c148 6 лет назад
What is the better solution using Asynctask or volley to get data From MySQL databases ????????????????????
@ssaguiar
@ssaguiar 4 года назад
Thank you for the tutorial, it's very good. I have a question, though: how can we make the data be requested by demand? I explain: if I have a large data source (more than 1000 records), how can we make the requests being called when we scroll the recyclerView? Thank you very much.
@MonirHossain-gr2nv
@MonirHossain-gr2nv 2 года назад
To the point! Thanks
@mayureshpachangane7523
@mayureshpachangane7523 4 года назад
If we use python api using flask instead of php the android code won't change?
@94717050766
@94717050766 5 лет назад
Thanks a lot well explained video
@astrophel12
@astrophel12 2 года назад
is it alright if I execute the query like this $result = $connection->query($query) ?
@Ms2coolrahul
@Ms2coolrahul 6 лет назад
thank you sir it's working for me
@andrewjuarez9217
@andrewjuarez9217 5 лет назад
How can I make the individual products clickable so I can browse to a page that shows the product information in depth?
@jmcb91
@jmcb91 3 года назад
my api.ph is displaying only as 1 line and not the same format as yours. altho i think it had the same values just not the correct spacing and linings. should i be worried? i copied your tutorial except for my database is on webhost mysql. and my app is not displaying anthing
@jmcb91
@jmcb91 3 года назад
it doesnt have an error the app just launches with i guess the recyclerview on it but there is no cardview from the custom layout at all.
@dedsecy
@dedsecy 4 года назад
Hello,So I Wanted a Search Box and when some one enter the `id` Then it should display the other info i.e., title,shortdesc,rating,price,image .Please create a tutorial or say how to do that ty.
@learnuptech1723
@learnuptech1723 7 лет назад
Very nice, keep up the good work! sir Belal khan we are with u :) my question is that how we can display for multiple images like in gridview just like as a example of beautifull wallpaper application
@aquqangenqoe6337
@aquqangenqoe6337 5 лет назад
Thanks a lot, you're my hero :)
@ahmadwahyudi9418
@ahmadwahyudi9418 6 лет назад
good tutorial, could you please add the next tutorial about show the product details about the product? thank you :)
@darshio8307
@darshio8307 2 года назад
Its quite late, but when i put the address of my php file, the page will only show me my code :c
@alishasaluja5069
@alishasaluja5069 6 лет назад
Thanks a lot Sir. Can you please tell how this app is gonna work when our Xampp server is turned off???
@rahulgunani6124
@rahulgunani6124 4 года назад
Thank alot..! and Its Amazing
@dasisridarshan106
@dasisridarshan106 6 лет назад
Hi sir, how to save scroll position of recylerview activity when we go to next detail activity by clicking itemclicklistener from list of items in recyclerview and restore position when we come back to recylerview activity...sir can you please help me
@wiqarali4156
@wiqarali4156 5 лет назад
Good job sir. Now I want to fetch the data of selected user from list in other activity. When user click on user name in the list. His/ her data will have to show in another activity. How to do that?
@tharungowda5219
@tharungowda5219 3 года назад
HI for me this works good explanations. What if we use CodeIgniter instead of Core PHP ??
@sureshswaminathan943
@sureshswaminathan943 6 лет назад
Video is very nice. Coding is simplified. But i have doubt please clarify. Is it payable for using glide and volley library
@SimplifiedCoding
@SimplifiedCoding 6 лет назад
No, not at all
@madhurmadan7018
@madhurmadan7018 6 лет назад
thanks for tutorial.gud work.
@prosperarineitwe9147
@prosperarineitwe9147 6 лет назад
Hello excellent tutorial, I am using your method but if you dont mind, I want to be able to click on an individual cardview and it sends the data to a new activity for every item
@sumarianakadek1855
@sumarianakadek1855 6 лет назад
i don't know exactly but you can try to add onClick attribute in your item.. so when you click it, it'll direct you to new activity
@sandrogabriel
@sandrogabriel 6 лет назад
I follow the tutorial and it give no error- But the products_list.xml no adapter in main_activity.xml what can I do?
@vinaykumarnagarjuna2452
@vinaykumarnagarjuna2452 6 лет назад
Good evening sir, Greetings for the day, It is very helpful for us, awesome explanation If it is possible please do share the same application how to fetch the data by using Retrofit library..
@SimplifiedCoding
@SimplifiedCoding 6 лет назад
+Vinay Kumar Nagarjuna check this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Vn1vD4oC7sA.html
@vinaykumarnagarjuna2452
@vinaykumarnagarjuna2452 6 лет назад
Thank you for your update...
@adroitpersonn2356
@adroitpersonn2356 6 лет назад
Thanks. keep up the good work. But When I run the app. rating and price are exchanged in output.Design part is ok still
@sahilarman5409
@sahilarman5409 6 лет назад
how can we search from all the data to get specific data and not show all of the data but just that specific data if you can help with that
@mukachikiii9958
@mukachikiii9958 2 года назад
THANK YOU BRO :)
@myidol4323
@myidol4323 5 лет назад
Great video. Can you tell me how click recycleView item and take item to other activity.
@alisidhu
@alisidhu 7 лет назад
How to upload photo in sqlite and retrive by given mannuly assigned id? Using local db..
@nehajella
@nehajella 6 лет назад
thank u soooooo much.... you helped me a lot... can u please provide intent for onclick of that image?
@baburamnabik3640
@baburamnabik3640 5 лет назад
can pls make a video on how to insert Data to the MySQL Database from recycler view .(use radio group and send a single radio button value from the recycler view),multiple insert at the same time. on the click of a button.
@AsifMohammadMollah
@AsifMohammadMollah 6 лет назад
Thanks... Tutorial was very nice... :-) Can you make a video using filter that can I filter my product list.
@SimplifiedCoding
@SimplifiedCoding 6 лет назад
+Asif Mohammad Mollah will upload it soon
@rehanmunir2028
@rehanmunir2028 5 лет назад
sir, please make a separate video every one face this kind of error (' No adapter attached; skipping layout')
@SimplifiedCoding
@SimplifiedCoding 5 лет назад
That means your list is empty.. check your list object, display the size in log or toast see what value is there. If it is zero, that means you have error on the fetching part. Now you have to debug the part where you are fetching data from api. Make sure you are getting the data from the url in your app. Try displaying the api response in log or toast.
@nmcristina7150
@nmcristina7150 6 лет назад
When the RecyclerView was created with static method, the onClick method was perfectly working. Now it doesn't seem to respond when clicking any item...any idea why?
@aziem462
@aziem462 5 лет назад
its probably because in this video, the products are taken from a database, which is stored in a server, not added to the phone.
@ayes.creation
@ayes.creation 5 лет назад
Thank you so much sir
@diegolisboa7785
@diegolisboa7785 6 лет назад
very very good tutorial
@AbdulRehman-gn9yd
@AbdulRehman-gn9yd 7 лет назад
sir can you tell how we can make add to favourites items and mark at favourite items which a user like ???
@namucho266
@namucho266 4 года назад
Thank you so much!
@digital_bhoot
@digital_bhoot 5 лет назад
Sir i want retrieve custom data like WHERE id=something and before getting json Activity sends id to server and server sends custom json
@vishalambavade8539
@vishalambavade8539 5 лет назад
How can I fetch the values from a cardview element to use it in another activity?
@sumitbhimte5142
@sumitbhimte5142 5 лет назад
Sir how to insert images into product table (that you put in the https link) . sir please give the description
@mizovideo_
@mizovideo_ 4 года назад
Sir, will it automatically update if you have new post in your site
@mimabouyahmed7434
@mimabouyahmed7434 4 года назад
The App opened successfully but shows nothing :( can u tel me why plizzzz
@SimplifiedCoding
@SimplifiedCoding 4 года назад
This video is obsolete now Follow this updated tutorial Retrofit Android Tutorial using PHP and MySQL: ru-vid.com/group/PLk7v1Z2rk4hhGfJw-IQCm6kjywmuJX4Rh
@mimabouyahmed7434
@mimabouyahmed7434 4 года назад
@@SimplifiedCoding thnx so much for ur answer sir
@student9297
@student9297 3 года назад
@@SimplifiedCoding ?? i got an error
@renielmallari3236
@renielmallari3236 5 лет назад
Hello! Can you please do a tutorial for a search? using edittext and cardview? i really need your help!!
@musaforotan6058
@musaforotan6058 6 лет назад
thank you for a great Tutorial. i have a liveTV project which is webView base but i am not satisfy with coz its really easy for others to get my M3u8 and also the not not looking pro and smooth. i want to use from this method. can you please tell me how to add my m3u8 file link in image view as link. like when user click on TV channel logo videoPlayer activity run my m3u8 file. thanks any help will appreciate. :)
@memen920621
@memen920621 5 лет назад
can I know how to make the recyclerVew clickable to another activity with display all the data from its title?
@SimplifiedCoding
@SimplifiedCoding 5 лет назад
Follow this series for an updated RecyclerView Tutorial: ru-vid.com/group/PLk7v1Z2rk4hhYrhtRtAX2zVm-FHV38-TQ If you want to know how to make recyclerview clickable then check this Android Room Tutorial Series: ru-vid.com/group/PLk7v1Z2rk4hg_ywZffPgRTmJoy2XWs02d In the 7th video of the above series, we discussed implementing click listener to RecyclerView items. You can check that video directly but I will recommend watching the whole series.
@HungryKombatYt
@HungryKombatYt Год назад
It can run on mobile devices??
@jonaldcapil6037
@jonaldcapil6037 6 лет назад
any tutorial for cardView + recyclerView + arrayList get Data on mySQL example: Header: Section Grade Year Data: Emerald 8 2018 Diamond 8 2018 Candy 9 2018
@samiatine5023
@samiatine5023 6 лет назад
hi sir , Every Thing is ok but data not displaying on Activity, it shows me this error “E/RecyclerView: No adapter attached; skipping layout ” ….please reply
@saranya3508
@saranya3508 6 лет назад
I too got a same error. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5j9MhswT2Gg.html Kindly check the above link.He has explained in this.
@chintanpatel949
@chintanpatel949 4 года назад
i get errorn please help E/RecyclerView: No adapter attached; skipping layout
@rahulshrivastava3464
@rahulshrivastava3464 4 года назад
same here I am also finding the solution please tell if anyone is facing the same problem
@AliFX
@AliFX 4 года назад
My emulator will not connect to my IP address. i tried changing the url to another website and it worked but it wont work when i put my ip adress and yes my server is running. Also, google works on google chrome on the emulator but it wont connect to google if i replace that with the url in the code
@AliFX
@AliFX 4 года назад
fixed the issue by downloading an android emulator from Genymotion. If you are having issues with android studio emulators not connecting to internet then this is the solution.
@AbhijeetKurkute
@AbhijeetKurkute 6 лет назад
I am getting error as E/RecyclerView: No adapter attached; skipping layout what should i do
@ryanandri3027
@ryanandri3027 5 лет назад
you may missed adding this recyclerView.setLayoutManager();
@senpairy1868
@senpairy1868 4 года назад
Parse error: syntax error, unexpected 'If' (T_IF) in C:\xampp\htdocs\myApi\api.php on line 10 can you please fix this
@kaboomstudios8416
@kaboomstudios8416 6 лет назад
hi bro can we access videos from database as well if so do u have any videos on dat
@alimahmood4158
@alimahmood4158 5 лет назад
Great video bro ,But after following the exact procedure its not showing me anything.Would you please help
@SimplifiedCoding
@SimplifiedCoding 5 лет назад
You should explain a little more that exactly what is happening, where is the error.
@alimahmood4158
@alimahmood4158 5 лет назад
@@SimplifiedCoding actually is not showing any thing ,and i have also seen that virtual device and real device tutorial,and i have done the ipconfig part, but still not showing any thing
@alimahmood4158
@alimahmood4158 5 лет назад
and also saying no adapter attached skipping layout
@alimahmood4158
@alimahmood4158 5 лет назад
and its also not showing in mobile phone when i use the exact address
@alimahmood4158
@alimahmood4158 5 лет назад
@Simplified Coding two errors 1 could not get camp table size. 2 No adapter attached; skipping layout
@usmanshahid4706
@usmanshahid4706 5 лет назад
sir i am unable to update U.I on runtime .U.i is updated if i minimize the screen and again open it
@raghuvarane9382
@raghuvarane9382 3 года назад
Ok, thank you. next 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 .
@sgrgug
@sgrgug 6 лет назад
sir, how can i open that parsed json link in in activity by using webview.....
@keli4581
@keli4581 6 лет назад
what is Glide.with? make me confused...
@equus8566
@equus8566 6 лет назад
plz tell how to delete item from recycler view as well as from mysql database
@shakiranavlekar6125
@shakiranavlekar6125 5 лет назад
Image is not displayed.. Kindly help. Give link to insert data and image
@janeerrai6089
@janeerrai6089 5 лет назад
sir how to retrive the image in the databse without in the format of the url.means like uploaded through php in the format of the name.jpg in the database
@ryanandri3027
@ryanandri3027 5 лет назад
as i know, database can't handle images type, that you can only add url from database as string or varchar. about url, no matter http or even ftp address from your server.
@hbsocialtv7968
@hbsocialtv7968 5 лет назад
thanks for this tutorial please can you help ! how to open another activities from these recyclerView ? please i need your help
@mostafanazer4467
@mostafanazer4467 6 лет назад
First ,Thank You then i want to learn how to send data to MySql to create a new object
@SimplifiedCoding
@SimplifiedCoding 6 лет назад
Check this Retrofit Android Tutorial using PHP and MySQL: ru-vid.com/group/PLk7v1Z2rk4hhGfJw-IQCm6kjywmuJX4Rh
@kunjammaoommen9749
@kunjammaoommen9749 4 года назад
Thanks
@tanmayfuse1747
@tanmayfuse1747 5 лет назад
Like image of we have song url then how to handle that with list
@VijayKumar-md3uz
@VijayKumar-md3uz 6 лет назад
Sir Can you please tell How to Insert Image in XAMMP phpmy Admin and how to create table with image field that actually contain the URL of the Image
@HarshitTewari20
@HarshitTewari20 6 лет назад
Choose the type to be "text" option and then insert the url in the database. It doesn't really matter as to what you're inserting into a sql database, it will be just treated like normal text in this case. What makes it special is how you treat that text once you extract it, i.e. eg. you know that the text is a url so you extract it and then use that text as url and get what you want. I hope you got my point.
@mahmoodimtiaz2550
@mahmoodimtiaz2550 6 лет назад
I have done exact the same! No errors but every time it's open with a blank activity! Can you please tell me what is the problem!?
@SimplifiedCoding
@SimplifiedCoding 6 лет назад
Check this video and make sure you do not have this problem that is explained here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5j9MhswT2Gg.html
@mahmoodimtiaz2550
@mahmoodimtiaz2550 6 лет назад
Thanks a lot! Now its working!
@obadakraishan704
@obadakraishan704 7 лет назад
very helpful thank you!! do you know how can i retrieve Arabic data from ( PHPmyadmin ) SQL? btw my domian on GoDaddy hostaing... thank you
@SimplifiedCoding
@SimplifiedCoding 7 лет назад
The process is same for every language
@enzowalker2118
@enzowalker2118 5 лет назад
How well does this method scale with large data from database ?
@SimplifiedCoding
@SimplifiedCoding 5 лет назад
In case of large data you need to use this method Android Paging Library Tutorial: ru-vid.com/group/PLk7v1Z2rk4hjCQw1RVoYPRdeIzwdz5_Fi
@enzowalker2118
@enzowalker2118 5 лет назад
@@SimplifiedCoding I will check it out, thank you!
@youcoool12
@youcoool12 5 лет назад
can you make a tutorial on how to add search into this
@1123queenie
@1123queenie 6 лет назад
sir my app won't run.. it says, unable to start app then it will disappear. please help
@Awaiskhan-cw8wx
@Awaiskhan-cw8wx 6 лет назад
please tell me how to pass music files through socket
@MongsKi1995
@MongsKi1995 5 лет назад
how to put an onclick lister to each item on card view ? to view the full details off the item
@SimplifiedCoding
@SimplifiedCoding 5 лет назад
Check this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-73Vg1HnMoHI.html
@JustMagnix
@JustMagnix 6 лет назад
I am aleways getting the Error "HTTP ERROR 500" when i open the Api file in the browser. I double checkt the php code but it still isn't working. What can I do?
@ademolaemmanuel5228
@ademolaemmanuel5228 6 лет назад
Have you created your database with the table name products? Try to check and update us here
@paapaasare
@paapaasare 6 лет назад
place your folder in the (www folder) instead of htdocs
@faizakhan1113
@faizakhan1113 5 лет назад
how to move elements of arry on next line>??
@alvinmd
@alvinmd 4 года назад
Thanks sir
@ariannesumayop880
@ariannesumayop880 3 года назад
I want to do this too , but with user information heehhe and display it on textview etc
Далее
Android RecyclerView and CardView Tutorial
20:23
Просмотров 155 тыс.
Fluffy Goes To India | Gabriel Iglesias
26:53
Просмотров 60 млн
Please Help This Superhero! 🙏
00:48
Просмотров 1,9 млн
Populate Spinner from MySQL Database in Android Studio
18:38
RECYCLERVIEW - Android Fundamentals
24:58
Просмотров 103 тыс.
Android Image Upload to App Server using Volley
29:28