How to update recyclerview adapter from service
<p>I just wanted to know is there any way to invoke method of Recyclerview.Adapter class from Service class, that is notifiDataSetChanged. </p>

<p>That reason to do that is when service updates the global audio id, it will match the item in recylerview and change its background color, but it doesnt update without scrolling, but its should do when i invoke notifydatasetchanged method.</p>

<p>So is there any solution, I tried number of ways and they are the following:</p>

<ol>
<li>I created empty recyclerview constructor, and tried to invoke notifydatasetchanged method, But it did'nt worked.</li>
</ol>

<p>and more 2 solutions tried but failed which are similar as above.</p>

<p>I wanted to know that is it possible from the fragment that is having recyclerview.</p>

<p>Thanks in advance.</p>