Esempio n. 1
0
        // Options are not as useful as under iOS since re-installing the
        // application deletes the file containing them.
        internal RunnerOptions(Activity activity)
        {
            var prefs = activity.GetSharedPreferences("options", FileCreationMode.Private);
            EnableNetwork = prefs.GetBoolean("remote", false);
            HostName = prefs.GetString("hostName", "0.0.0.0");
            HostPort = prefs.GetInt("hostPort", -1);
            NameDisplay = (NameDisplay)prefs.GetInt("nameDisplay", 1);
            ParallelizeAssemblies = prefs.GetBoolean("parallel", false);

            current = this;
        }
Esempio n. 2
0
 public static void Initialize(Activity activity)
 {
     // New it up to read the latest prefs
     current = new RunnerOptions(activity);
 }