Exemplo n.º 1
0
        private void CreateSQLiteTables()
        {
            const string launchkey = "LaunchedBeforeKey";

            ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences(this);
            ISharedPreferencesEditor editor = prefs.Edit();

            var hasLaunched = prefs.GetBoolean(launchkey, false);

            if (!hasLaunched)
            {
                editor.PutBoolean(launchkey, true);
                editor.Apply();

                // Create localDb tables
                var localDb = new LocalDB();
                localDb.CreateTables();
            }
        }