Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Regular Contributor
Posts: 50
Registered: ‎01-09-2013
My Device: Simulator
My Carrier: Vodafone

Android Connectivity test giving unexpected failure in BB10 simulator

Hello everyone, I am testing for internet connectivity at the application start. in android its working fine, but after signing and repackaging its giving unexpected failure in BB 10. public boolean isNetworkAvailable() { ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); //System.out.println(activeNetworkInfo); return activeNetworkInfo != null; } it is giving the application has stopped unexpectedly please try again if there is no internet then i'm showing a error dialog. Please help