public void OnSetFailure(string error) { outerInstance.RunOnUiThread(() => { throw new Exception("setSDP error: " + error); }); }