0
votes

i've created a windows phone 8 app, that is giving the result of calculations at runtime, now i need to store that result for future use/access,

what to do?

i have totally no idea of storage in wp8, although i've seen many tutorials for isolated storage & sqlite, but did'nt understood whats going on in them......

any suggestion? how to store my data..? easy steps to follow

this is the code, which is showing result on a page at runtime,

 protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        date.Text = time.ToShortDateString();
        for (int i = 0; i < NavigationContext.QueryString.Count; i++)
        {
            KeyValuePair<string, string> kv = NavigationContext.QueryString.ElementAt(i);

            StackPanel panel = new StackPanel();
            TextBlock block1 = new TextBlock();
            TextBlock block2 = new TextBlock();
            block1.Text = kv.Key;
            block2.Text = kv.Value;
            block1.Width = 100;
            block2.Width = 100;
            panel.Orientation = System.Windows.Controls.Orientation.Horizontal;
            panel.Height = 50;
            panel.Children.Add(block1);
            panel.Children.Add(block2);
            ContentPanel.Children.Add(panel);



        }


    }
1

1 Answers

2
votes

you can use it both if you want to see your database structure or instant insert and update or delete it than sqlite is best way...

Go thorough bellow link here is example of local daabase in windows phone 8 with sqlite.

Windows Phone 7 Native Database Programming via Sqlite Client for Windows Phone

SQLite-WinRT: Database programming on Windows Phone and Windows 8

How to use SQLite in Windows Phone

Hope it will help you