I tried with passing context of activity into the adapter and then i tried context.finish(); But its giving me one error like The method fini
context
context.finish();
The method fini
Try passing your Activity as an activity parameter, then you'll be able to call finish() on it. Hope this helps.
activity
finish()