public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // We need this to ensure the execution assembly is part of the app bundle
            AddExecutionAssembly(typeof(ExtensibilityPointFactory).Assembly);


            // tests can be inside the main assembly
            AddTestAssembly(Assembly.GetExecutingAssembly());
            AutoStart = true;
            TerminateAfterExecution = true;
            using (var str = GetType().Assembly.GetManifestResourceStream("result_ip"))
                using (var sr = new StreamReader(str))
                {
                    ResultChannel = new TextWriterResultChannel(new TcpTextWriter(sr.ReadToEnd().TrimEnd(), 12345));
                }

            return(base.FinishedLaunching(application, launchOptions));
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            ActivityContext = ApplicationContext;
            Couchbase.Lite.Support.Droid.Activate(ApplicationContext);

            // tests can be inside the main assembly
            AddTestAssembly(Assembly.GetExecutingAssembly());

            AddExecutionAssembly(typeof(ExtensibilityPointFactory).Assembly);
            AutoStart = true;

            // This doesn't seem to work on Android...at least not on GenyMotion
            TerminateAfterExecution = true;
            using (var str = GetType().Assembly.GetManifestResourceStream("result_ip"))
                using (var sr = new StreamReader(str)) {
                    ResultChannel = new TextWriterResultChannel(new TcpTextWriter(sr.ReadToEnd().TrimEnd(), 54321));
                }

            base.OnCreate(savedInstanceState);
        }