It can be used to allow your application to perform input input to the portalβs Wi-Fi. Assuming there is something like this in your manifest:
<activity android:name=".SignInActivity"> <intent-filter> <action android:name="android.net.conn.CAPTIVE_PORTAL"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity>
Here's what could happen:
- The device connects to the Wi-Fi portal with fixed access
- The system displays a portal inaccessibility notification
- User accesses notification
- The system displays an implicit application selection method
- User selects
SignInActivity SignInActivity launched
You can access the additional functions specified in ConnectionManager.ACTION_CAPTIVE_PORTAL_SIGN_IN using getIntent() and getParcelableExtra() . Use ConnectivityManager.EXTRA_NETWORK extra (which is of type Network ) to communicate with the portal (i.e. the badge in tokens) and ConnectivityManager.EXTRA_CAPTIVE_PORTAL extra (which is of type CaptivePortal ) to communicate with the system about the results of the sign.
source share