Android - no connectivity for my App. How to debug?
<p>I have check for internet connectivity that goes like this:</p>

<pre><code>public static boolean isInternetAvailable(Context ctx)
    {
        NetworkInfo info = ((ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo();

        if (info == null || !info.isConnected()) return false;

        if (info.isRoaming())
        {
            return Preferences.getIsRoamingAllowed(ctx);
        }

        return true;
    }
</code></pre>

<p>It's been working good for all installations so far. Today user came in with a phone where everything worked (browser, email, etc) and it wasn't roaming. But my app due to this check was giving "No connection" error.</p>

<p>Phone is HTC Droid ERIS with 2.1</p>

<p>Anyone saw this issue? Any pointers why?</p>
