Yeah, the constants are added in later api levels so we just hard code the numbers to ensure compatibility with earlier android versions.

On Thursday, October 31, 2013 at 4:50 PM, Conrad Irwin wrote:

> In src/main/java/com/bugsnag/android/Diagnostics.java:
> > + return file.exists(); > + } catch (Exception e) { > + return false; > + } > + } > + > + // Requires android.permission.ACCESS_NETWORK_STATE > + protected String getNetworkStatus() { > + String networkStatus = null; > + > + try { > + // Get the network information > + ConnectivityManager cm = (ConnectivityManager)applicationContext.getSystemService(Context.CONNECTIVITY_SERVICE); > + NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); > + if(activeNetwork != null && activeNetwork.isConnectedOrConnecting()) { > + if(activeNetwork.getType() == 1) {  
> @snmaynard (https://github.com/snmaynard) Is there a reason you're not using the constants? http://developer.android.com/reference/android/net/ConnectivityManager.html
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/bugsnag/bugsnag-android/pull/14/files#r7360376).
>  
>  
>