title: Retrieve content from custom tab in app
body: <p>After searching for hours I have to ask: Is there a way to retreive the content from a chrome custom tab from the hosting activity in android?</p>
  
  <p>My prefered way would be to start Chrome Custom Tabs from my App via <em>StartActivityForResult</em> and react in <em>OnActivityResult</em>. Until now I only managed to receive back the requestCode, but data is always null (and resultCode always canceled).</p>
  
  <p>I've learned it would be possible by setting up a way through deep linking and pushing an intend defined via javascript on a website to a specific app handling exactly that deeplink uri schema (e.g. here: <a href="https://developer.chrome.com/multidevice/android/intents" rel="nofollow noreferrer">Chrome Devs intents</a>).</p>
  
  <p><strong>But</strong> this seem rather complicated for passing a <em>success</em> or <em>failed</em> back to the app after solving a task at the server. </p>
  
  <p><strong>So</strong>: Is there a way to put some data to the Chrome Tab passed back as result to the hosting Activity?</p>
  
  <p>BTW: A side question: If I would use deep linking instead, wouldn't this mess up the "proper" lifecycles a bit? App->starts ChromeTab->starts Intent->starts App again?</p>
  
  <p>Any hints are very apreciated!</p>