I have removed the ads blocker for your channel. Your tutorials are really adding extra knowledge to my Android career. To learn things in Hindi is fantastic👏👏👏👏👏🙏.
You have understood every thing from this video. Pls clear my doubt. Bro said in this video that anchor position is used when Paging 3 object reside in memory then I am unable to understand why did he use anchor position in the function getRemoteKeyClosestToCurrentPosition() in Remote Mediator class. And why did he not used RemoteKey table to fetch data from database in case of Offline.
Anchor position ek object ki field hai Object memory mei nahi hoga jab application memory mei nahi hogi. So in that case - remote keys wala table use karenge...I hope this will help
abhi pagination ka kafi achhe tarah se samj aya hai, You are explaining each topic very smoothly with extreme level, apke tutorial follwo karte hee interview bhi clear kiye, You are best , Bus ye jo code kiye hai pagination ka github pe update nahi kya vo mil sakta hai kya pura code? Thanks Sir
Best, Big fan, sir.....This is known as quality, Its only a factor of time for your subscriber growth sir. I have some suggestion for subcribers :- 1. UA-cam content for android is especially for beginners (means the ratio of beginners are higher in utube for android because some exp players know how to read docs) so the point is the beginner search for android is mainly for ui part, like how to change button background, or apply border, insert image in bottom nav etc. But please don't leave these concepts begginers exp also need these... 2. Sir your style have quality, but i can imagine that some students may take it very serious like android is tuff at start, so can u please add some comedy like memes of just make fun on the concepts so that he can relate with u. These are just suggestion, i know you are the best in teaching....
Hello sir kya pagging karne ke liye data ye paging format ke liye hi chahiye agar api 1k record show karta in json format then how to achieve this in pagging??
@@CheezyCode ok...u mean store first all data in room db then make it in the form of pages then use . Can you make any video according to this scenario?
@@CheezyCode i am following your all kotlin advance tutorial it's great 🎉🎉 due to this tutorial i learned alot Thanks 🙏🙏 Please also make tutorial on advance topic like now live data is deprecated, One of my suggestion is while making an video pls make it with MVVM live data viewmodel retrofit Please also make tutorial on viewPager2.
Hi Sir I am getting crash with null pointer Exception at my setText method of recyclerview adapter while scrolling down ,KIndly plz help Sir i also copy paste from your github repo but still getting error and Sir also mainViewModel.getQuotes().observe(this, { listAdapter.submitData(lifecycle, it) }) is calling 5 times at first load i check it by Log.d.
Hi sir, I have used your code exactly same but for some reason after adding the RemoteMediator part , my recyclerview is scrolling only upto 20 items i.e first page data only loading. I can't find out what went wrong. Can you please suggest what possibly went wrong??
You said we use anchor position only when paging 3 objects reside in memory right but still you are using anchor position in Remote Mediator class function named getRemoteKeyClosestToCurrentPosition() and in nowhere in your code you used RemoteKey to fetch data from room database in case of Offline support. You used RemoteKey table only to fetch data from network.
in sample implementation: getting below error, If we can not store null values on primary key according to sqlite, How you are storing null values on table. please help SQLiteConstraintException: NOT NULL constraint failed: Quote._id (code 1299 SQLITE_CONSTRAINT_NOTNULL)
Thank you sir for this amazing playlist. I had a doubt, I ahve scenario where I have to fetch the books of different category. And for each category I would be getting paged data. Now, do i have to create RemoteMediater for each of the category? And that would mean multiple tables in DB?
Yeh raha mera solution: Aapko different - different categories ke liye different - different tables banane ki zarurat nahi hai, aap 3 tables bana lo, example ke liye: 1) books_store 2) categories_store 3) books Aapko books (3) pe book_store (1) aur categories_store (2) ki id store karni hai as foreign key... aur queries pe join clause ka use karke kisi bhi category ki books access kar sakte ho! iss tarah aapko multiple tables banane ki zarurat nahi padegi!
Hey if you get stuck with 20 items only, the solution is to put suspend before fun getRemoteKey(id:String): QuoteRemoteKeys function and fun deleteAllRemotekeys() in remotekeysdao class. it should be suspend fun getRemoteKey(id:String): QuoteRemoteKeys and suspend fun deleteAllRemotekeys() respectively
Hey if you get stuck with 20 items only, the solution is to put suspend before fun getRemoteKey(id:String): QuoteRemoteKeys function and fun deleteAllRemotekeys() in remotekeysdao class. it should be suspend fun getRemoteKey(id:String): QuoteRemoteKeys and suspend fun deleteAllRemotekeys() respectively
I have removed the ads blocker for your channel. Your tutorials are really adding extra knowledge to my Android career. To learn things in Hindi is fantastic👏👏👏👏👏🙏.
Thank you 😊
You have understood every thing from this video. Pls clear my doubt. Bro said in this video that anchor position is used when Paging 3 object reside in memory then I am unable to understand why did he use anchor position in the function getRemoteKeyClosestToCurrentPosition() in Remote Mediator class. And why did he not used RemoteKey table to fetch data from database in case of Offline.
Anchor position ek object ki field hai
Object memory mei nahi hoga jab application memory mei nahi hogi.
So in that case - remote keys wala table use karenge...I hope this will help
jab ham upar ki taraf scroll kartey h tab tu ham anchor position ka use karsaktey mera matlab h append ke case me. Tab tu app memory mee hota h.
But 2 logic kyo likhege?
best series on youtube thank you sir🙏🙏🙏
Awesome Series. Thank you
abhi pagination ka kafi achhe tarah se samj aya hai, You are explaining each topic very smoothly with extreme level, apke tutorial follwo karte hee interview bhi clear kiye, You are best ,
Bus ye jo code kiye hai pagination ka github pe update nahi kya vo mil sakta hai kya pura code?
Thanks Sir
will push it soon on github...
Nice explanation sir ❤️❤️❤️
Thanks and welcome
Best, Big fan, sir.....This is known as quality, Its only a factor of time for your subscriber growth sir.
I have some suggestion for subcribers :-
1. UA-cam content for android is especially for beginners (means the ratio of beginners are higher in utube for android because some exp players know how to read docs) so the point is the beginner search for android is mainly for ui part, like how to change button background, or apply border, insert image in bottom nav etc. But please don't leave these concepts begginers exp also need these...
2. Sir your style have quality, but i can imagine that some students may take it very serious like android is tuff at start, so can u please add some comedy like memes of just make fun on the concepts so that he can relate with u.
These are just suggestion, i know you are the best in teaching....
Thank you ❤️
@awesome #Cheezy Code😘
Hello sir kya pagging karne ke liye data ye paging format ke liye hi chahiye agar api 1k record show karta in json format then how to achieve this in pagging??
API should support pagination. Otherwise you can store it in RoomDB and provide pagination support...
@@CheezyCode ok...u mean store first all data in room db then make it in the form of pages then use .
Can you make any video according to this scenario?
@@CheezyCode i am following your all kotlin advance tutorial it's great 🎉🎉 due to this tutorial i learned alot Thanks 🙏🙏
Please also make tutorial on advance topic like now live data is deprecated,
One of my suggestion is while making an video pls make it with MVVM live data viewmodel retrofit
Please also make tutorial on viewPager2.
Hi Sir I am getting crash with null pointer Exception at my setText method of recyclerview adapter while scrolling down ,KIndly plz help Sir i also copy paste from your github repo but still getting error
and Sir also
mainViewModel.getQuotes().observe(this, {
listAdapter.submitData(lifecycle, it)
})
is calling 5 times at first load i check it by Log.d.
Hi sir, I have used your code exactly same but for some reason after adding the RemoteMediator part , my recyclerview is scrolling only upto 20 items i.e first page data only loading. I can't find out what went wrong. Can you please suggest what possibly went wrong??
Check profiler if network call is there for 2nd page
Check if page number is getting incremented
hey. did you find the reason? i'm also stuck on it
@@CheezyCode its is not being incremented. idk why?
Let me check - will push the code on GitHub as well...
@@CheezyCode pls do. i'm stuck on it for 4 days now. would really be thankful if you can help
You said we use anchor position only when paging 3 objects reside in memory right but still you are using anchor position in Remote Mediator class function named getRemoteKeyClosestToCurrentPosition() and in nowhere in your code you used RemoteKey to fetch data from room database in case of Offline support. You used RemoteKey table only to fetch data from network.
great man
in sample implementation: getting below error, If we can not store null values on primary key according to sqlite, How you are storing null values on table. please help
SQLiteConstraintException: NOT NULL constraint failed: Quote._id (code 1299 SQLITE_CONSTRAINT_NOTNULL)
Can we use Remote Mediator without Dagger (Dependency inhection), When we can use how to do that !!
Create object yourself
Thank you sir for this amazing playlist.
I had a doubt, I ahve scenario where I have to fetch the books of different category. And for each category I would be getting paged data. Now, do i have to create RemoteMediater for each of the category? And that would mean multiple tables in DB?
Yeh raha mera solution:
Aapko different - different categories ke liye different - different tables banane ki zarurat nahi hai, aap 3 tables bana lo, example ke liye:
1) books_store
2) categories_store
3) books
Aapko books (3) pe book_store (1) aur categories_store (2) ki id store karni hai as foreign key... aur queries pe join clause ka use karke kisi bhi category ki books access kar sakte ho!
iss tarah aapko multiple tables banane ki zarurat nahi padegi!
can u please make a video on how to post on facebook and instagram using graph apis
let's see...not committing
Please use dark theme in Android studio
light theme pe easy rehta hai..cursor easily dikh jata h....
Hey if you get stuck with 20 items only, the solution is to put suspend before fun getRemoteKey(id:String): QuoteRemoteKeys function and fun deleteAllRemotekeys() in remotekeysdao class. it should be suspend fun getRemoteKey(id:String): QuoteRemoteKeys and suspend fun deleteAllRemotekeys() respectively
still only 20 reuslt is shown and pagination doesn't work
Hey if you get stuck with 20 items only, the solution is to put suspend before fun getRemoteKey(id:String): QuoteRemoteKeys function and fun deleteAllRemotekeys() in remotekeysdao class. it should be suspend fun getRemoteKey(id:String): QuoteRemoteKeys and suspend fun deleteAllRemotekeys() respectively
Thanks a million for saving my day😍