public void registerListener(com.maximintegrated.bio.uv.MaximUVSensorEventListener p11)
    {
        this.location = 0;
        this.uvListener = p11;
        this.uvEvent = new com.maximintegrated.bio.uv.MaximUVSensorEvent();
        if (!com.maximintegrated.bio.uv.MaximUVSensor.isJniLoaded) {
            android.util.Log.e(MaximUV, JNI not loaded calling startAlgorithm failed);
        } else {
            this.startAlgorithm();
        }
        this.sm.registerListener(this, this.uvSensor, 3);
        this.sm.registerListener(this, this.accSensor, 0);
        this.sm.registerListener(this, this.pressSensor, 3);
        this.sm.registerListener(this, this.magSensor, 0);
        boolean v0_7 = this.locationManager.isProviderEnabled(gps);
        boolean v1_6 = this.locationManager.isProviderEnabled(network);
        String v3_5 = new StringBuilder(MaximUVSensor registerListener() - isGPSEnabled : );
        v3_5.append(v0_7);
        v3_5.append(, isNetworkEnabled : );
        v3_5.append(v1_6);
        android.util.Log.d(MaximUV, v3_5.toString());
        this.location = this.locationManager.getLastKnownLocation(passive);
        if (this.location != null) {
            android.util.Log.i(MaximUV, PASSIVE_PROVIDER provide location information);
        }
        if ((this.location == null) && ((v0_7) || (v1_6))) {
            android.util.Log.i(MaximUV, PASSIVE_PROVIDER DO NOT provide location information);
            if (v1_6) {
                this.locationManager.requestLocationUpdates(network, 60000, 1092616192, this);
                if (this.locationManager != null) {
                    this.location = this.locationManager.getLastKnownLocation(network);
                    if (this.location != null) {
                        android.util.Log.i(MaximUV, NETWORK_PROVIDER provide location information);
                    }
                }
            }
            if ((v0_7) && (this.location == null)) {
                android.util.Log.i(MaximUV, NETWORK_PROVIDER DO NOT provide location information);
                this.locationManager.requestLocationUpdates(gps, 60000, 1092616192, this);
                if (this.locationManager != null) {
                    this.location = this.locationManager.getLastKnownLocation(gps);
                    if (this.location != null) {
                        android.util.Log.i(MaximUV, GPS_PROVIDER provide location information);
                    }
                }
            }
        }
        if (this.location == null) {
            if ((v1_6) || (v0_7)) {
                android.util.Log.i(MaximUV, No LastKnowLocation, waiting for LocationListner);
            } else {
                android.util.Log.i(MaximUV, No Location Service : algorithm will not run);
            }
        }
        return;
    }