The Android M supports a new ACTION_CAPTIVE_PORTAL_SIGN_IN. Is there any sample available on how to capture this action. I tried with the normal way of registering for an action in both through the activity and through the broadcast receiver. However when I am connected with the captive portal wifi network, I am not receiving the actions. Someone please help
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
It can be used to allow your app to perform captive portal Wi-Fi sign in. Assuming you have something like this in your manifest:
Here is what can happen:
SignInActivity
SignInActivity
is launchedYou may access the extras mentioned in the
ConnectionManager.ACTION_CAPTIVE_PORTAL_SIGN_IN
usinggetIntent()
andgetParcelableExtra()
. Use theConnectivityManager.EXTRA_NETWORK
extra (which has typeNetwork
) to communicate with the portal (i.e. pass sign in tokens), and theConnectivityManager.EXTRA_CAPTIVE_PORTAL
extra (which has typeCaptivePortal
) to communicate with the system about the outcome of the sign in.