void SetTrackingEnabled(bool enabled) { if (actRecognitionHandler == null) { actRecognitionHandler = new ActivityRecognitionHandler(this); } actRecognitionHandler.SetTrackingEnabled(enabled); }
public override void OnReceive(Context context, Intent intent) { var prefs = new PreferenceManager (context); if (!prefs.FirstTimeAround && prefs.Enabled) { var actRecognitionHandler = new ActivityRecognitionHandler (context); actRecognitionHandler.SetTrackingEnabled (true); } }
public override void OnReceive(Context context, Intent intent) { var prefs = new PreferenceManager(context); if (!prefs.FirstTimeAround && prefs.Enabled) { var actRecognitionHandler = new ActivityRecognitionHandler(context); actRecognitionHandler.SetTrackingEnabled(true); } }