public GuesterFilter(Activity context,SimpleGestureListener sgl)
is probably never called.
It must be called to initialized this.context
at least.
Try this code:
public class BeginYourWorkout extends Activity implements SimpleGestureListener
{
private GuesterFilter detector;
protected void onCreate(Bundle savedInstanceState)
{
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
super.onCreate(savedInstanceState);
setContentView(R.layout.eventsView);
this.detector = new GuesterFilter(this, this);
}
//...
}