App Package Folder App data Folders Local Roaming Temp Removable Storage (SD Card) Cloud Credential Locker B/ground Transfer Publishers Shared Folder.

Slides:



Advertisements
Similar presentations
PHP II Interacting with Database Data. The whole idea of a database-driven website is to enable the content of the site to reside in a database, and to.
Advertisements

Bruce Scharlau, University of Aberdeen, 2012 Data storage options for mobiles Mobile Computing.
My first computer: The Apple ][ It wanted to be programmed.
Transact-SQL. 1. Declare float = 10 select * from customers where discnt
ASP.NET Best Practices Dawit Wubshet Park University.
NMED 3850 A Advanced Online Design February 25, 2010 V. Mahadevan.
Center for Earned Value Management wInsight – “How to Use” Guide
SQLLite and Java CS-328 Dick Steflik. SQLLite Embedded RDBMS ACID Compliant Size – about 257 Kbytes Not a client/server architecture –Accessed via function.
SQLite and the.NET Framework This PPT:
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
CIS 270—App Dev II Big Java Chapter 22 Relational Databases.
WPH304. announcement LINQ to SQL LINQ to User Data.
Connected Experiences
Apps are notified when they have been resumed.
SQLite Database. SQLite Public domain database – Advantages Small (about 150 KB) – Used on devices with limited resources Each database contained within.
MySql In Action Step by step method to create your own database.
U NIT 4 F ILE U PLOAD. I. C REATE AN U PLOAD -F ILE F ORM - With PHP, it is possible to upload files to the server.To allow users to upload files from.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
PostgreSQL and relational databases As well as assignment 4…
CSCI 6962: Server-side Design and Programming JDBC Database Programming.
BIT 286: Web Applications Lecture 04 : Thursday, January 15, 2015 ASP.Net MVC - Models.
Nic Shulver, Retrieving Stored Data Introduction This set of slides shows: The information source database structure The data.
11 Updating a Database Table Textbook Chapter 14.
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
CS378 - Mobile Computing Persistence. Saving State We have already seen saving app state into a Bundle on orientation changes or when an app is killed.
Reaching your customers in new and unique ways Mobile “Devices” led to revolutionary Experiences “Bring the experience with you” Came with many constraints.
“Thanks guys for a great information packed day. head is spinning!” “Well done guys. Intense sessions” “This is the best ever JumpStart that I have.
Lecture 4 PL/SQL language. PL/SQL – procedural SQL Allows combining procedural and SQL code PL/SQL code is compiled, including SQL commands PL/SQL code.
Database Processing with JSP ISYS 350. Example: Enter CID in a box and retrieve the customer record.
Additional Topics. API Bindings Bindings Binding Native API’s Create Binding Project Drop Jar or.a Done.
Chapter 4 Introduction to MySQL. MySQL “the world’s most popular open-source database application” “commonly used with PHP”
PHP MySQL. SQL: Tables CREATE TABLE tablename { fieldname type(length) extra info,... } Extra info: –NULL (allows nulls in this field) –Not NULL (null.
While you are waiting, please install the Windows 10 phone emulators because the installation takes a while and we will be using them during the lab later.
MySQL Connection using ADO.Net Connecting to MySQL from.NET Languages.
SQLite Supported by BlackBerry OS 5.0 Using SQLite.
Android Storage. There are several options for storage of data with Android We can put data into a preferences file. We can put data into a ‘normal’ file.
Nilesh Singh Local Data Storage option Android provides several options for you to save persistent application data. - Shared preferences - Creation.
Chapter 5 MYSQL Database. Introduction to MYSQL MySQL is the world's most popular open-source database. Open source means that the source code, the programming.
Command Object’s ExecuteNonQuery Method ISYS 512.
Visual Programing SQL Overview Section 1.
Enterprise PHP – Reading Data from a DB Reading Data from a relational database in PHP Nic Shulver, FCES, Staffordshire University Using the SQLi interface.
Persistence Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
Mobile Software Development ISCG 7424 Department of Computing UNITEC John Casey and Richard Rabeder SQLite and Permissions.
COMP 321 Week 4. Overview Normalization Entity-Relationship Diagrams SQL JDBC/JDBC Drivers hsqldb Lab 4-1 Introduction.
Database Processing with JSP ISYS 350. Example: Enter CID in a box and retrieve the customer record.
PHP Programming. Topics Database Handling (MySQL, MSSQL, ODBC)
SQLite DB Storing Data in Android RAVI GAURAV PANDEY 1.
CHAPTER 10 PHP MySQL Database
Android - SQLite Database 12/10/2015. Introduction SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with.
Database Processing with JSP ISYS 350. Example: Enter CID in a box and retrieve the customer record.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Working with MySQL A290/A590, Fall /07/2014.
Introduction to MySQL  Working with MySQL and MySQL Workbench.
Database Processing with JSP ISYS 350. Database Applications Applications Database Server Queries/Updates Results.
By: Eliav Menachi.  On Android, all application data (including files) are private to that application  Android provides a standard way for an application.
Data in Windows 10 UWP Andy Wigley XML, JSON, SQLite or EF Core ?
Vaughan Knight App Ecosystem Lead Microsoft FileOpenPicke r, FileSavePicker Read/Write access to SD card Appointments /Calendar API enhancements Appointments.
Phonegap Bridge – Storage CIS 136 Building Mobile Apps 1.
C# MySQL onnect-C-to-MySQL 1.
Nic Shulver, Storing Data on the Server Introduction We are going to look at some working code It writes fixed data into a simple.
ATS Application Programming: Java Programming
Storing Images Connect to the server using the correct username and password. $conn = mysql_connect(“yourserver”, “joeuser”, “yourpass”); Create the database.
Data Storage, Backup and Roaming
Programming SQLite on Windows Phone 8.1
Data Structures and Database Applications Custom Models with MVC
A Developer's Guide to Windows 10 Andy & Jerry
CIS 136 Building Mobile Apps
UWP Application Data: Building a continuous application experience
Social Media And Global Computing Managing MVC with Custom Models
Chapter 4 Introduction to MySQL.
Presentation transcript:

App Package Folder App data Folders Local Roaming Temp Removable Storage (SD Card) Cloud Credential Locker B/ground Transfer Publishers Shared Folder Picker Provider apps

Roaming Folder Settings Other devices can access what you put in here Data roamed cross-device Limited to 100kb per application Held in OneDrive storage Local FolderSettings Store local data here for use by your application Can store data up to the limit of the storage on the device Retained if the application is updated Temp Folder Use for temporary storage No guarantee it will still be here next time your program runs Cleaned up in a low storage condition Windows.Security. Credentials PasswordVault Credentials Credential Locker Use for secure storage of PasswordCred- ential objects Data roamed cross-device Publisher Cache Folder Shared storage for apps from same publisher Declare in app manifest

using Windows.Data.Json;.. public string Stringify() { JsonArray jsonArray = new JsonArray(); foreach (School school in Education) { jsonArray.Add(school.ToJsonObject()); } JsonObject jsonObject = new JsonObject(); jsonObject["id"] = JsonValue.CreateStringValue(Id); // Treating a blank string as null if (String.IsNullOrEmpty(Phone)) jsonObject["phone"] = JsonValue.CreateNullValue(); else jsonObject["phone"] = JsonValue.CreateStringValue(Phone); jsonObject["name"] = JsonValue.CreateStringValue(Name); jsonObject["education"] = jsonArray; return jsonObject.Stringify(); }

using Windows.Data.Json;.. JsonObject jsonObject = JsonObject.Parse(jsonString); Id = jsonObject.GetNamedString("id", ""); IJsonValue phoneJsonValue = jsonObject.GetNamedValue("phone"); if (phoneJsonValue.ValueType == JsonValueType.Null) { Phone = null; } else { Phone = phoneJsonValue.GetString(); } Name = jsonObject.GetNamedString("name", "");

Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; // Create a simple setting localSettings.Values["exampleSetting"] = "Hello Windows"; // Read data from a simple setting if (localSettings.ContainsKey("exampleSetting")) { // Access data in value string data = localSettings.Values[ "exampleSetting" ].ToString(); } // Delete a simple setting localSettings.Values.Remove("exampleSetting"); // Composite setting Windows.Storage.ApplicationDataCompositeValue composite = new Windows.Storage.ApplicationDataCompositeValue(); composite["intVal"] = 1; composite["strVal"] = "string"; localSettings.Values["exampleCompositeSetting"] = composite;

using (var conn = new SQLiteConnection("demo.db")) { Customer customer = null; using (var statement = conn.Prepare( "SELECT Id, Name FROM Customer WHERE Id = ?")) { statement.Bind(1, customerId); if (SQLiteResult.DONE == statement.Step()) { customer = new Customer() { Id = (long)statement[0], Name = (string)statement[1] }; } var db = new SQLite.SQLiteAsyncConnection(App.DBPath); var _customer = await (from c in db.Table () where c.Id == customerId select c).FirstOrDefaultAsync(); if (customer != null) { var Id = _customer.Id; var Name = _customer.Name; } …and others!

private void LoadDatabase() { // Set the path to the SQLite database var DBPath = Path.Combine( Windows.Storage.ApplicationData.Current.LocalFolder.Path, "customers.sqlite"); // Initialize the database if necessary using (var db = new SQLite.SQLiteConnection(DBPath, SQLite.SQLiteOpenFlags.ReadWrite | SQLite.SQLiteOpenFlags.Create)) { // Create the tables if they don't exist db.CreateTable (); } SQLite-NET

public class Customer { [PrimaryKey, AutoIncrement] public int Id { get; set; } public string Name { get; set; } public string City { get; set; } public string Contact { get; set; } } SQLite-NET

private void LoadDatabase() { // Specify database location var db = new SQLiteWinRT.Database(ApplicationData.Current.LocalFolder, "sqlitedemo.db"); try { // Open a connection to the SQLite database – creates it if it does not exist await db.OpenAsync(); string sql TABLE IF NOT EXISTS Customer (Id INTEGER PRIMARY KEY AUTOINCREMENT, Name VARCHAR( 140 ), City VARCHAR( 140 ), Contact VARCHAR( 140 ) );"; await db.ExecuteStatementAsync(sql); } catch (Exception ex) { var result = SQLiteWinRT.Database.GetSqliteErrorCode(ex.HResult); throw new ApplicationException("Database create failed with error " + result); } SQLite-WinRT

User is the center of the experience, not the device. Available on the right device at the right time Input model optimized for the experience. Enabling Mobile Experiences with Universal Apps The Experience you want on the device you want User

Client Conflict resolution Server Conflict resolution