문제

I have an Android Application that has to fetch an XML file from a particular URL.

To do this, I first check if an internet connection is available and if so, I download the file. This works fine.

The issue happens when I use my app in a network where users can connect to the internet but need to provide a username and password before they can access any page i.e. Limited Access.

How can I test for Limited Access to the network?

Thanks.

도움이 되었습니까?

해결책

To determine that the user has a fully functioning network connection try to open a web link programmatically in background if you get a success status then internet connection is available else user has limited access.This may help you.Have a look

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top