public final class BrowserTabActivity
extends Activity
When chrome custom tab is launched, and we're redirected back with the redirect uri (the redirect must be unique across apps on a device), the os will fire an intent with the redirect, and the BrowserTabActivity will be launched.
<intent-filter> <action android:name="android.intent.action.VIEW" /> To receive implicit intents, have to put the activity in the category of default. <category android:name="android.intent.category.DEFAULT" /> The target activity allows itself to be started by a web browser to display data. <category android:name="android.intent.category.BROWSABLE" /> BrowserTabActivity will be launched when matching the custom url scheme. <data android:scheme="msalclientid" android:host="auth" /> </intent-filter>
Constructor and Description |
---|
BrowserTabActivity() |