Stepan Bezhuk
Stepan Bezhuk

Reputation: 23

Update content in the Recycler View without reloading activity

I need that when connected to the Internet, my list is updated and pulls up fresh information from the resource on the API, but I do not know how to do it. Maybe someone has encountered this problem or maybe has a solution to this problem

Upvotes: 0

Views: 113

Answers (1)

Yousef Kazemi
Yousef Kazemi

Reputation: 164

you should detect the internet connection Broadcast receiver for checking internet connection in android app

then when in onReceive() callback, request your data from API and update your recyclerview

Upvotes: 1

Related Questions