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
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