Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sensors/ex2_boxes/ex2_boxes.pde
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void setup() {
fullScreen(P2D);
orientation(PORTRAIT);

context = getActivity();
context = getContext();
manager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
sensor = manager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
listener = new AccelerometerListener();
Expand Down Expand Up @@ -95,4 +95,4 @@ class AccelerometerListener implements SensorEventListener {
}
public void onAccuracyChanged(Sensor sensor, int accuracy) {
}
}
}