Skip to content

Commit

Permalink
Add log for exception catched
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawazine H committed Feb 12, 2017
1 parent c8bbc4c commit fee5a22
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -20,6 +20,7 @@
import android.hardware.SensorEventListener;
import android.location.Location;
import android.os.Bundle;
import android.util.Log;

public abstract class BasicSensorActivity extends SherlockFragmentActivity implements SensorEventListener {

Expand Down Expand Up @@ -103,7 +104,7 @@ private void registerLocationUpdates() {
try {
NovoCompass.getLocator().startLocationUpdates();
} catch (NoProviderAvailable np) {
// TODO add implementation
Log.e(TAG, "There is no provider available", np);
}
}

Expand Down

0 comments on commit fee5a22

Please sign in to comment.