2f6f7f52b0dcb72c2e50b5d2bbc4e82d.ppt
- Количество слайдов: 23
Mobile Application Development 2005 By Sam Nasr July 25, 2006 www. Cleveland. Dot. Net. info
Agenda Introduction n Mobile Platform n. Net Compact Framework n Demo n Data Management n Web Services n Q&A n Feedback n
Windows Mobile Devices n Windows Mobile provides a variety of device types n n n Pocket PC Smartphone Pocket PC Phone Edition
Windows Mobile Platform n Common Win 32 platform across device types n Mobile versions of productivity tools n n Excel Mobile, Word Mobile, Pocket Outlook Simplified access to device extensions n Camera, GPS, Phone
Thin Clients VS. Fat Client
Developing Mobile Applications n NET Compact Framework 2. 0 n n n Visual Studio 2005 n n n Leverage desktop. NET Framework skills Classes 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 Development experience consistent with desktop Automated application deployment Integrated device debugging Run managed. EXEs and. DLLs directly Debug with Visual Studio. NET Emulators n n Develop and debug applications without a device Emulator Manager provides centralized control
Windows Mobile Managed API’s n Focus on simplifying device development n Encapsulate common device tasks n Global Positioning System interaction n Camera and picture management n 3 -D Graphics and multimedia support n State and Notifications Broker (SNAPI) n Common repository for device information n Phone state, battery life, what song is playing n Sends notifications of changes in device state n n Network availability, arrival of phone call Arrival of SMS/email message
. NET Framework System. Web Services Description Discovery Protocols UI Html. Controls Web. Controls Caching Configuration Security Session. State System. Win. Forms Design System. Drawing 2 D Imaging System. Data ADO. NET Design Component. Model Sql. Client Printing Text System. Xml. Document Xslt/XPath Serialization Reader/Writers System Collections Security Text Globalization IO Net Reflection Resources Configuration Service. Process Diagnostics Threading Runtime Interop. Services Remoting Serialization
. NET Compact Framework System. Web Services Description UI Html. Controls Discovery System. Win. Forms Web. Controls Design Component. Model System. Drawing Protocols Caching Security Drawing 2 D Configuration Session. State Imaging System. Data Printing Text System. Xml ADO. NET Sql. Client Xml. Document Serialization Design Sql. Server. Ce Xslt/XPath Reader/Writers System Collections IO Configuration Security Net Service. Process Runtime Interop. Services Text Reflection Diagnostics Remoting Globalization Resources Threading Serialization
Demo
Data Management
Data Management n SQL Server 2005 Mobile Edition (SQL Mobile) n Full featured database running locally on device n inner/outer joins, transactions, locking, much more n Visual Studio 2005 support n Server Explorer n Create database, tables and indices n Modify schema and data n Database file can be located on device or desktop n Forms Designer n Controls created directly from table schema n Data view and edit forms can be auto generated
SQL Mobile Synchronization n Remote Data Access (RDA) n Merge Replication
Remote Data Access (RDA) n Loosely-coupled n Retrieve data from server and track local changes n Send local changes back to server n Very lightweight server cost n requires URL pointing to DLL to allow data access. (i. e. http: //192. 168. 1. 100/sqlmobile/sqlcesa 30. dll")
Merge Replication n Tightly-coupled device and server schema n Changes tracked on both device and server n Device and server changes reconciled on synch n Significant server cost n DB File (. SDF) stored in a folder on the mobile device. (i. e. Data Source =" foldername + "Real. Estate. sdf“)
SQL Server Everywhere n • Essential relational database functionality in a compact footprint n • Ideal for mobile and desktop applications, including occasionally connected n • Embeddable in applications n • Free to download, develop, deploy, and redistribute
SQL Server Everywhere n Increase Productivity: SQL Server Everywhere allows developers and administrators to apply their existing SQL Server skills and be immediately productive. n • 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. n • 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. n • Better Value Over Time: As requirements and scale grow, SQL Server Everywhere can easily scale up to other editions of SQL Server.
Web Services & Mobile Apps n Web services perfectly suited for mobile apps n n n 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 n n Visual Studio Add Web Reference generates proxy Proxy class handles communications details
. Net Mobile Advantages • • • Managed Code environment n. Garbage Collection n. Type safety n. Exception Handling n. Threading n. Organized. Net Classes n. ADO. Net Integration n. Platform Invoke (P/Invoke) service n. Integration with Web Services Single Vendor relationship Tight integration with Mobile API’s 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 • Active. Sync
Summary n Windows Mobile Development Common development experience with desktop n Emulators provide accurate debug and development experience n n Data Management SQL Mobile provides reliable local data store n RDA and Merge Replication provide server synch n Web services give easy access to server resources n n Windows Mobile 5. 0 n Simplifies common device tasks
Valuable Resources n Windows Mobile Developer Center http: //msdn. microsoft. com/mobility n FREE Mobile Developer Resource Kits http: //msdn. microsoft. com/mobility/windowsmobile/howto/kits/ n SQL Server 2005 Mobile Edition http: //msdn. microsoft. com/mobility/sqlmobile/default. aspx n Comparing RDA and Merge Replication http: //msdn. microsoft. com/library/en-us/dnsql 90/html/sql 2 k 5 mobile. asp
Additional Information Mobile Messaging Discussion http: //www. microsoft. com/downloads/details. aspx? fa milyid=67 c 06122 -17 b 2 -4268 -9 f 71 a 583 ff 7 d 5 e 17&displaylang=en n n How Microsoft IT Does Mobile Messaging (Level 300) http: //go. microsoft. com/fwlink/? Link. Id=64090 Mobile Client Software Factory (Patterns and Practices) http: //www. gotdotnet. com/codegallery/codegalle ry. aspx? id=5 bef 2 b 5 f-476 a-488 c-8 d 55 -9 d 41666 a 36 f 3
Upcoming Events n Tuesday, August 22, 2006 Tech. Net (8 AM-Noon) and MSDN Events (1 -5 PM) n Tuesday, August 29, 2006 (Noon EST) Live From Redmond: . NET Compact Framework 2. 0: Optimizing for Performance n Tuesday, August 29, 2006 C#/VB. Net SIG (6: 30 PM - 8: 30 PM)
2f6f7f52b0dcb72c2e50b5d2bbc4e82d.ppt