SlideShare a Scribd company logo
Multitasking and
    Local Dababase in
Windows Phone Mango


                        Radu Vunvulea
Windows Phone Mango
    Multitasking
Multitasking
               Fast App Switching
Multitasking and Phone Health
Application Lifecycle
           Reload / refresh
           state only if
           needed




Application is resident in
memory; system detaches        Save state but
resources and pauses threads   do not discard
                               it
Application Lifecycle
           Reload / refresh
           state only if
           needed




Application is resident in
memory; system detaches        Save state but
resources and pauses threads   do not discard
                               it
Background transfer


          20
                      20 MB
          MB




          100     Unlimited
          MB
End-to-End Architecture
Developer          Application                    OS
MyApp Solution           MyApp.dll

 MyApp Project
                          UX                     Single
WMAppManifest            Logic                    App


                 Cloud           ISO Store      System
                                                Services
  MyAppAgent
    Project
                               MyAppAgent.dll
Demo
Background Agents
Ce ne este permis:   Ce nu ne este permis:
• Base API           • Librarii XNA
• Update de tile     • Audio
• Toasts             • Senzori
• Location           • Microfon
• Networking         • Camera
• Storage            • UI
Differences Between Agents

Periodic Agent
•    Runs every 30 minutes     •   Runs on external power
•    Any network connection    •   Non-cell network
•    Runs for 25 seconds           connection

•    Used for location, data   •   Runs for 10 mins, recurring
     sync, etc.                •   Used for daily tasks, large
                                   data syncs, etc.
Windows Phone Mango
   Local Database
Where is database stored


  Application                                Isolated
                                             Storage
                       LINQ to SQL Runtime
     Data Context
  (Sistem.Data.Linq)                            Local
                                              Database
Good to know

• Isolated Storage is used to store database files

• LINQ to SQL is used as the ORM engine

• LINQ is used to query data

• Only System.Data.Linq assembly must be
  added to the project.
Database design

• Custom connection string format:
   Data Source='isostore:/MyDir/DbName.sdf'
  "Data Source='isostore:/MyDir/DbName.sdf'"

• T-SQL queries are not supported

• The code-first approach to defining the
  database schema is preferred in this version
  of Windows Phone 7.1 Mango.
Limitations

• ADO.NET Objects are not supported
• Skip() and Take() require an ordered list and
  constants values
• Only Microsoft SQL CE data types are
  supported
• BinaryFormatter is not supported by default
  (hack: CustomType and implement ToString() and Parse() in your custom
  class)

• ExecuteCommand is not suported – NO T-
  SQL, NO DML statement, NO DDL
Process to follow to use SQL CE




        Implement all database classes:          Create a new database (.sdf) file in Isolated   Populate the database stored in the Isolated
  tables, columns, relations, datacontext, etc   Storage(by default the database is empty)                    Storage with data
Code Sample
Questions
Multumesc

                  Radu Vunvulea
           vunvulear@gmail.com
       vunvulearadu.blogspot.com

More Related Content

Viewers also liked

Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...
Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...
Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...
Radu Vunvulea
 
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
Radu Vunvulea
 
What’s new in azure from an enterprise perspective by Radu Vunvulea
What’s new in azure from an enterprise perspective by Radu VunvuleaWhat’s new in azure from an enterprise perspective by Radu Vunvulea
What’s new in azure from an enterprise perspective by Radu Vunvulea
Radu Vunvulea
 
Why you should believe in cloud - ITCluster iQuest Cluj Napoca
Why you should believe in cloud - ITCluster iQuest Cluj Napoca Why you should believe in cloud - ITCluster iQuest Cluj Napoca
Why you should believe in cloud - ITCluster iQuest Cluj Napoca
Radu Vunvulea
 
Mobile services on windows azure (part1)
Mobile services on windows azure (part1)Mobile services on windows azure (part1)
Mobile services on windows azure (part1)
Radu Vunvulea
 
Real time fluent communication using SignalR and Cloud (Windows Azure)
Real time fluent communication using SignalR and Cloud (Windows Azure)Real time fluent communication using SignalR and Cloud (Windows Azure)
Real time fluent communication using SignalR and Cloud (Windows Azure)
Radu Vunvulea
 
First 13 steps to be able to design an application for Azure Service Fabric ...
First 13 steps to be able to design an application for Azure Service Fabric  ...First 13 steps to be able to design an application for Azure Service Fabric  ...
First 13 steps to be able to design an application for Azure Service Fabric ...
Radu Vunvulea
 
Mobile services on windows azure (part3)
Mobile services on windows azure (part3)Mobile services on windows azure (part3)
Mobile services on windows azure (part3)
Radu Vunvulea
 
Asp.net mvc bad practices
Asp.net mvc   bad practicesAsp.net mvc   bad practices
Asp.net mvc bad practices
Radu Vunvulea
 
Database and Public Endpoints redundancy on Azure (CloudBrew)
Database and Public Endpoints redundancy on Azure (CloudBrew)Database and Public Endpoints redundancy on Azure (CloudBrew)
Database and Public Endpoints redundancy on Azure (CloudBrew)
Radu Vunvulea
 
Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...
Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...
Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...
Radu Vunvulea
 
Load tests using Visual Studio 2013 and Azure
Load tests using Visual Studio 2013 and AzureLoad tests using Visual Studio 2013 and Azure
Load tests using Visual Studio 2013 and Azure
Radu Vunvulea
 

Viewers also liked (12)

Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...
Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...
Service Fabric – Microservices in Microsoft World, Radu Vunvulea 30 may 2016 ...
 
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
Azure Microservices in Practice, Radu Vunvulea, ITCamp 2016
 
What’s new in azure from an enterprise perspective by Radu Vunvulea
What’s new in azure from an enterprise perspective by Radu VunvuleaWhat’s new in azure from an enterprise perspective by Radu Vunvulea
What’s new in azure from an enterprise perspective by Radu Vunvulea
 
Why you should believe in cloud - ITCluster iQuest Cluj Napoca
Why you should believe in cloud - ITCluster iQuest Cluj Napoca Why you should believe in cloud - ITCluster iQuest Cluj Napoca
Why you should believe in cloud - ITCluster iQuest Cluj Napoca
 
Mobile services on windows azure (part1)
Mobile services on windows azure (part1)Mobile services on windows azure (part1)
Mobile services on windows azure (part1)
 
Real time fluent communication using SignalR and Cloud (Windows Azure)
Real time fluent communication using SignalR and Cloud (Windows Azure)Real time fluent communication using SignalR and Cloud (Windows Azure)
Real time fluent communication using SignalR and Cloud (Windows Azure)
 
First 13 steps to be able to design an application for Azure Service Fabric ...
First 13 steps to be able to design an application for Azure Service Fabric  ...First 13 steps to be able to design an application for Azure Service Fabric  ...
First 13 steps to be able to design an application for Azure Service Fabric ...
 
Mobile services on windows azure (part3)
Mobile services on windows azure (part3)Mobile services on windows azure (part3)
Mobile services on windows azure (part3)
 
Asp.net mvc bad practices
Asp.net mvc   bad practicesAsp.net mvc   bad practices
Asp.net mvc bad practices
 
Database and Public Endpoints redundancy on Azure (CloudBrew)
Database and Public Endpoints redundancy on Azure (CloudBrew)Database and Public Endpoints redundancy on Azure (CloudBrew)
Database and Public Endpoints redundancy on Azure (CloudBrew)
 
Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...
Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...
Radu Vunvulea - Microsoft TechDay Baltic 2016 | First 13 steps to be able to ...
 
Load tests using Visual Studio 2013 and Azure
Load tests using Visual Studio 2013 and AzureLoad tests using Visual Studio 2013 and Azure
Load tests using Visual Studio 2013 and Azure
 

Similar to Windows Phone: multitasking and local database

Android OS
Android OSAndroid OS
Android OS
Nitin Ramchandani
 
Explore Android Internals
Explore Android InternalsExplore Android Internals
Explore Android Internals
National Cheng Kung University
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
Lope Emano
 
Android Training in Chandigarh
Android Training in ChandigarhAndroid Training in Chandigarh
Android Training in Chandigarh
Arcadian Learning
 
Android - Application Framework
Android - Application FrameworkAndroid - Application Framework
Android - Application Framework
Yong Heui Cho
 
android vs symbian
android  vs symbianandroid  vs symbian
android vs symbian
AJAL A J
 
Application layering vs Application Isolation
Application layering vs Application IsolationApplication layering vs Application Isolation
Application layering vs Application Isolation
Marius Sandbu
 
Discover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS Summit
Discover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS SummitDiscover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS Summit
Discover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS Summit
Amazon Web Services
 
VMware ThinApp 4.5
VMware ThinApp 4.5VMware ThinApp 4.5
VMware ThinApp 4.5
netlogix
 
Android OS
Android OSAndroid OS
Android OS
Vishal Sapariya
 
redpill Mobile Case Study (Salvation Army)
redpill Mobile Case Study (Salvation Army)redpill Mobile Case Study (Salvation Army)
redpill Mobile Case Study (Salvation Army)
Peter Presnell
 
ApacheCon BigData - What it takes to process a trillion events a day?
ApacheCon BigData - What it takes to process a trillion events a day?ApacheCon BigData - What it takes to process a trillion events a day?
ApacheCon BigData - What it takes to process a trillion events a day?
Jagadish Venkatraman
 
Foss con2011
Foss con2011Foss con2011
John adams talk cloudy
John adams   talk cloudyJohn adams   talk cloudy
John adams talk cloudy
John Adams
 
Nokia Asha App Development - Part 1
Nokia Asha App Development - Part 1Nokia Asha App Development - Part 1
Nokia Asha App Development - Part 1
Marlon Luz
 
Game Development for Nokia Asha Devices with Java ME #1
Game Development for Nokia Asha Devices with Java ME #1Game Development for Nokia Asha Devices with Java ME #1
Game Development for Nokia Asha Devices with Java ME #1
Marlon Luz
 
Java Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,CoimbatoreJava Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,Coimbatore
Gateway Software Solutions
 
An introduction to Titanium
An introduction to TitaniumAn introduction to Titanium
An introduction to Titanium
Graham Weldon
 
Android Introduction
Android IntroductionAndroid Introduction
Android Introduction
Sharmistha Mandal
 
20120306 dublin js
20120306 dublin js20120306 dublin js
20120306 dublin js
Richard Rodger
 

Similar to Windows Phone: multitasking and local database (20)

Android OS
Android OSAndroid OS
Android OS
 
Explore Android Internals
Explore Android InternalsExplore Android Internals
Explore Android Internals
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
 
Android Training in Chandigarh
Android Training in ChandigarhAndroid Training in Chandigarh
Android Training in Chandigarh
 
Android - Application Framework
Android - Application FrameworkAndroid - Application Framework
Android - Application Framework
 
android vs symbian
android  vs symbianandroid  vs symbian
android vs symbian
 
Application layering vs Application Isolation
Application layering vs Application IsolationApplication layering vs Application Isolation
Application layering vs Application Isolation
 
Discover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS Summit
Discover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS SummitDiscover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS Summit
Discover MongoDB Atlas and MongoDB Stitch - DEM02-S - Mexico City AWS Summit
 
VMware ThinApp 4.5
VMware ThinApp 4.5VMware ThinApp 4.5
VMware ThinApp 4.5
 
Android OS
Android OSAndroid OS
Android OS
 
redpill Mobile Case Study (Salvation Army)
redpill Mobile Case Study (Salvation Army)redpill Mobile Case Study (Salvation Army)
redpill Mobile Case Study (Salvation Army)
 
ApacheCon BigData - What it takes to process a trillion events a day?
ApacheCon BigData - What it takes to process a trillion events a day?ApacheCon BigData - What it takes to process a trillion events a day?
ApacheCon BigData - What it takes to process a trillion events a day?
 
Foss con2011
Foss con2011Foss con2011
Foss con2011
 
John adams talk cloudy
John adams   talk cloudyJohn adams   talk cloudy
John adams talk cloudy
 
Nokia Asha App Development - Part 1
Nokia Asha App Development - Part 1Nokia Asha App Development - Part 1
Nokia Asha App Development - Part 1
 
Game Development for Nokia Asha Devices with Java ME #1
Game Development for Nokia Asha Devices with Java ME #1Game Development for Nokia Asha Devices with Java ME #1
Game Development for Nokia Asha Devices with Java ME #1
 
Java Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,CoimbatoreJava Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,Coimbatore
 
An introduction to Titanium
An introduction to TitaniumAn introduction to Titanium
An introduction to Titanium
 
Android Introduction
Android IntroductionAndroid Introduction
Android Introduction
 
20120306 dublin js
20120306 dublin js20120306 dublin js
20120306 dublin js
 

Recently uploaded

AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 

Recently uploaded (20)

AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 

Windows Phone: multitasking and local database

  • 1. Multitasking and Local Dababase in Windows Phone Mango Radu Vunvulea
  • 2. Windows Phone Mango Multitasking
  • 3. Multitasking Fast App Switching
  • 5. Application Lifecycle Reload / refresh state only if needed Application is resident in memory; system detaches Save state but resources and pauses threads do not discard it
  • 6. Application Lifecycle Reload / refresh state only if needed Application is resident in memory; system detaches Save state but resources and pauses threads do not discard it
  • 7. Background transfer 20 20 MB MB 100 Unlimited MB
  • 8. End-to-End Architecture Developer Application OS MyApp Solution MyApp.dll MyApp Project UX Single WMAppManifest Logic App Cloud ISO Store System Services MyAppAgent Project MyAppAgent.dll
  • 10. Background Agents Ce ne este permis: Ce nu ne este permis: • Base API • Librarii XNA • Update de tile • Audio • Toasts • Senzori • Location • Microfon • Networking • Camera • Storage • UI
  • 11. Differences Between Agents Periodic Agent • Runs every 30 minutes • Runs on external power • Any network connection • Non-cell network • Runs for 25 seconds connection • Used for location, data • Runs for 10 mins, recurring sync, etc. • Used for daily tasks, large data syncs, etc.
  • 12. Windows Phone Mango Local Database
  • 13. Where is database stored Application Isolated Storage LINQ to SQL Runtime Data Context (Sistem.Data.Linq) Local Database
  • 14. Good to know • Isolated Storage is used to store database files • LINQ to SQL is used as the ORM engine • LINQ is used to query data • Only System.Data.Linq assembly must be added to the project.
  • 15. Database design • Custom connection string format: Data Source='isostore:/MyDir/DbName.sdf' "Data Source='isostore:/MyDir/DbName.sdf'" • T-SQL queries are not supported • The code-first approach to defining the database schema is preferred in this version of Windows Phone 7.1 Mango.
  • 16. Limitations • ADO.NET Objects are not supported • Skip() and Take() require an ordered list and constants values • Only Microsoft SQL CE data types are supported • BinaryFormatter is not supported by default (hack: CustomType and implement ToString() and Parse() in your custom class) • ExecuteCommand is not suported – NO T- SQL, NO DML statement, NO DDL
  • 17. Process to follow to use SQL CE Implement all database classes: Create a new database (.sdf) file in Isolated Populate the database stored in the Isolated tables, columns, relations, datacontext, etc Storage(by default the database is empty) Storage with data
  • 20. Multumesc Radu Vunvulea vunvulear@gmail.com vunvulearadu.blogspot.com