title: How to skip second activity when there is no data in database using adapter class and recyclerview?
body: <p>Example:</p>
  <p>This is a Main Activity and onclick item from adapter class its open second activity having listview but in case there is no data in listview for any of the item of grid activity then skip second activity and goto third activity directly. [1]: <a href="https://i.stack.imgur.com/OrbTJ.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/OrbTJ.jpg</a></p>
  <p>[1]: [Second Activity][1] https://i.stack.imgur.com/KEfEF.png</p>
  <p>[1]:Third Activity <a href="https://i.stack.imgur.com/XSYMB.png" rel="nofollow noreferrer">https://i.stack.imgur.com/XSYMB.png</a></p>