Mobile Application Development 2005 By Sam Nasr July 25, 2006 PowerPoint PPT Presentation

presentation player overlay
1 / 23
About This Presentation
Transcript and Presenter's Notes

Title: Mobile Application Development 2005 By Sam Nasr July 25, 2006


1
Mobile Application Development2005BySam
NasrJuly 25, 2006
www.ClevelandDotNet.info
2
Agenda
  • Introduction
  • Mobile Platform
  • .Net Compact Framework
  • Demo
  • Data Management
  • Web Services
  • QA
  • Feedback

3
Windows Mobile Devices
  • Windows Mobile provides a variety of device types
  • Pocket PC
  • Smartphone
  • Pocket PC Phone Edition

4
Windows Mobile Platform
  • Common Win32 platform across device types
  • Mobile versions of productivity tools
  • Excel Mobile, Word Mobile, Pocket Outlook
  • Simplified access to device extensions
  • Camera, GPS, Phone

5
  • Thin Clients
  • VS.
  • Fat Client

6
Developing Mobile Applications
  • NET Compact Framework 2.0
  • Leverage desktop .NET Framework skills
  • Classes for forms, drawing, storage, net, data
    access, XML
  • Optimized for smart devices (28 of coverage, 8
    of size).
  • Full support for VB.NET and C language features
  • Visual Studio 2005
  • Development experience consistent with desktop
  • Automated application deployment
  • Integrated device debugging
  • Run managed .EXEs and .DLLs directly
  • Debug with Visual Studio .NET
  • Emulators
  • Develop and debug applications without a device
  • Emulator Manager provides centralized control

7
Windows Mobile Managed APIs
  • Focus on simplifying device development
  • Encapsulate common device tasks
  • Global Positioning System interaction
  • Camera and picture management
  • 3-D Graphics and multimedia support
  • State and Notifications Broker (SNAPI)
  • Common repository for device information
  • Phone state, battery life, what song is playing
  • Sends notifications of changes in device state
  • Network availability, arrival of phone call
  • Arrival of SMS/email message

8
.NET Framework
9
.NET Compact Framework
System.Web
System.WinForms
Services
UI
Design
ComponentModel
Description
HtmlControls
Discovery
WebControls
System.Drawing
Protocols
Caching
Security
Drawing2D
Printing
Text
Configuration
SessionState
Imaging
System.Data
System.Xml
ADO.NET
SqlClient
XmlDocument
Serialization
Design
SqlServerCe
Xslt/XPath
Reader/Writers
System
Collections
IO
Configuration
Runtime
InteropServices
Security
Net
ServiceProcess
Remoting
Text
Reflection
Diagnostics
Serialization
Globalization
Resources
Threading
10
  • Demo

11
  • Data Management

12
Data Management
  • SQL Server 2005 Mobile Edition (SQL Mobile)
  • Full featured database running locally on device
  • inner/outer joins, transactions, locking, much
    more
  • Visual Studio 2005 support
  • Server Explorer
  • Create database, tables and indices
  • Modify schema and data
  • Database file can be located on device or desktop
  • Forms Designer
  • Controls created directly from table schema
  • Data view and edit forms can be auto generated

13
SQL Mobile Synchronization
  • Remote Data Access (RDA)
  • Merge Replication

14
Remote Data Access (RDA)
  • Loosely-coupled
  • Retrieve data from server and track local changes
  • Send local changes back to server
  • Very lightweight server cost
  • requires URL pointing to DLL to allow data
    access. (i.e. http//192.168.1.100/sqlmobile/sqlc
    esa30.dll")

15
Merge Replication
  • Tightly-coupled device and server schema
  • Changes tracked on both device and server
  • Device and server changes reconciled on synch
  • Significant server cost
  • DB File (.SDF) stored in a folder on the mobile
    device. (i.e. Data Source " foldername
    "RealEstate.sdf)

16
SQL Server Everywhere
  • Essential relational database functionality in a
    compact footprint
  • Ideal for mobile and desktop applications,
    including occasionally connected
  • Embeddable in applications
  • Free to download, develop, deploy, and
    redistribute

17
SQL Server Everywhere
  • Increase Productivity SQL Server Everywhere
    allows developers and administrators to apply
    their existing SQL Server skills and be
    immediately productive.
  • Enables Deep Business Insight SQL Server
    Everywhere, together with Business Intelligence
    in SQL Server 2005, allows you to extend your
    business insights further across the organization
    to distributed and mobile applications.
  • Reliability For Mission-Critical Business
    Originally built on SQL Mobile technology, SQL
    Server Everywhere has self-healing and management
    technologies built designed to handle instant off
    and dead battery scenarios.
  • Better Value Over Time As requirements and
    scale grow, SQL Server Everywhere can easily
    scale up to other editions of SQL Server.

18
Web Services Mobile Apps
  • Web services perfectly suited for mobile apps
  • Can communicate with any enterprise platform
  • Well suited for casual connectivity
  • Inexpensive way to roll-out mobile solutions
  • Provide internet access to enterprise resources
  • Accessing web services same as on desktop
  • Visual Studio Add Web Reference generates proxy
  • Proxy class handles communications details

19
.Net Mobile Advantages
  • Managed Code environment
  • Garbage Collection
  • Type safety
  • Exception Handling
  • Threading
  • Organized .Net Classes
  • ADO.Net Integration
  • Platform Invoke (P/Invoke) service
  • Integration with Web Services
  • Single Vendor relationship
  • Tight integration with Mobile APIs
  • Remote Viewer
  • Rich Graphics UI
  • Faster application performance
  • High Productivity with Visual Studio.Net
  • Intellisense
  • Remote debugging
  • Common development experience
  • Emulators provide accurate debug and development
    experience
  • Separation of code, HTML, and scripts for easier
    debugging
  • Multi-language support
  • Reduced application development time
  • Code Access Security
  • Tight integration with other MS products
  • Integration with SQL Server CE
  • ActiveSync

20
Summary
  • Windows Mobile Development
  • Common development experience with desktop
  • Emulators provide accurate debug and development
    experience
  • Data Management
  • SQL Mobile provides reliable local data store
  • RDA and Merge Replication provide server synch
  • Web services give easy access to server resources
  • Windows Mobile 5.0
  • Simplifies common device tasks
  • Standardizes system status and notification

21
Valuable Resources
  • Windows Mobile Developer Center
  • http//msdn.microsoft.com/mobility
  • FREE Mobile Developer Resource Kits
  • http//msdn.microsoft.com/mobility/windowsmobile/h
    owto/kits/
  • SQL Server 2005 Mobile Edition
  • http//msdn.microsoft.com/mobility/sqlmobile/defau
    lt.aspx
  • Comparing RDA and Merge Replication
  • http//msdn.microsoft.com/library/en-us/dnsql90/ht
    ml/sql2k5mobile.asp

22
Additional Information
  • Mobile Messaging Discussion http//www.microsoft.c
    om/downloads/details.aspx?familyid67c06122-17b2-4
    268-9f71-a583ff7d5e17displaylangen
  • How Microsoft IT Does Mobile Messaging (Level
    300)
  • http//go.microsoft.com/fwlink/?LinkId64090
  • Mobile Client Software Factory (Patterns and
    Practices)
  • http//www.gotdotnet.com/codegallery/codegallery.a
    spx?id5bef2b5f-476a-488c-8d55-9d41666a36f3

23
Upcoming Events
  • Tuesday, August 22, 2006
  • TechNet (8AM-Noon) and MSDN Events (1-5PM)
  • Tuesday, August 29, 2006 (Noon EST)
  • Live From Redmond .NET Compact Framework 2.0
    Optimizing for Performance
  • Tuesday, August 29, 2006
  • C/VB.Net SIG (630 PM - 830 PM)
Write a Comment
User Comments (0)
About PowerShow.com