Android应用在Reliance JIO 4G连接中无法正常工作 [英] Android app is not working frequently in Reliance JIO 4G connection

查看:61
本文介绍了Android应用在Reliance JIO 4G连接中无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,除了Reliance Jio之外,所有运营商的WiFi和3G连接都可以正常工作.

I have an android app which is working completely fine in WiFi and 3G connection of all operators except Reliance Jio.

但是,我发现有时在使用Reliance JIO 4G连接时android应用程序未连接到我的HTTPS Web服务,但是同一组HTTPS Web服务在连接设备时没有任何延迟的情况下也可以正常运行给其他服务提供商.

However, I have found that Sometimes the android app is not connecting to my HTTPS web-services when Reliance JIO 4G connection is used, but the same set of HTTPS web-services are working perfectly without any delay when the device is connected to other service providers.

推荐答案

在发出请求之前,应检查用户是否具有有效的Internet连接.

You should check whether user has active internet connection before making request.

使用此方法检查互联网的可用性,只有在返回true时才发出请求,否则请向他们举报互联网不可用.

use this method to check internet availablity only make request if this returns true, otherwise toast them internet not available.

    public static boolean isInternetAvailable() {
    try {
        InetAddress ipAddr = InetAddress.getByName("google.com"); //You can replace it with your name
        return !ipAddr.equals("");

    } catch (Exception e) {
        return false;
    }

}

这篇关于Android应用在Reliance JIO 4G连接中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆