我有一个应用程序,我想在应用程序开始前检查设备是否有互联网连接,并检查 GPS 是否打开。如果 GPS 关闭应将用户引导至设置位置页面...并在互联网关闭时弹出。
谁能帮我解决这个问题。
感谢任何形式的帮助。
最佳答案
您可以查看 DataUsage class
Represents data usage information returned by the ConnectionProfile.GetLocalUsage method.
检查此类提供的两个属性,即 BytesSent和 BytesReceived .
关于c# - 检查 GPS 和互联网是否在 Windows 8 Phone 应用程序中打开?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33232899/