I want to Close Chrome Custom Tab when ACTION button is clicked
<p>I am trying to integrate Chrome Custom Tabs in my Android App. Here is the requirement where I am stuck:<br>
1. List of pdfs being shown in GridView. The user when clicks on any pdf will be opened on custom tabs. Here I will pass the position of item in GridView.<br>
2. This position will be used for selection. There will be a <code>SELECT</code> action on custom tab. When the user clicks on SELECT, the custom tab should close passing the position back to the activity so that I can mark that item in GridView selected.</p>

<p>Now the problem is in closing the Custom Tab and passing the data back to activity. Any help in this regard will be highly appreciated.</p>