public LocationInfoHandler(Context context) { try { if (SwitchConfig.DEV) { LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); locationManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER, 1000, 1, locationListener); } } catch (Exception e) { MVLog.e(e.getMessage()); } }