Building Solutions with the Microsoft .NET Compact Framework: Architecture and Best Practices for Mobile Development

Book description

“If you’ve been looking for one book on the .NET Compact Framework that will teach you everything you need to know, look no further—this is it! Jon and Dan do a wonderful job of covering this content, so that readers are sure to find much enlightenment within these pages.”

Derek Ferguson, Chief Technology Evangelist, Expand Beyond Corporation

“While many technical books focus on API details, this book covers architectures and best practices. It highlights the special concerns for .NET mobile development. It is an excellent book for experienced .NET developers who want to transfer their skills to the red-hot mobility arena.”

Michael Yuan, University of Texas at Austin

“Moving to the .NET Compact Framework is about to become much easier with the aid of this book. The samples and supplied utility code will help you get a running start on your own mobile development projects.”

Kent Sharkey, Program Manager, MSDN

“This book is the starting place for development on devices using the Microsoft Compact Framework. Whether you are doing business or commercial applications, this book is the resource to kick-start your journey into mobile development.”

Stephen Forte, CTO, Corzen, Inc.

“The .NET Compact Framework brings the power of .NET programming to mobile devices. Dan and Jon’s book is an excellent resource to help build your programming skills in the mobility area.”

Kevin Lisota, Product Manager, Mobile Devices Division, Microsoft Corporation

“Mobile applications are truly a new class of applications and having feature-rich development tools and infrastructures like VS .NET and the .NET Compact Framework is only half the battle of learning to build them. It’s great to see Dan and Jon apply their in-depth knowledge of the .NET Compact Framework to cover the important topics that everybody learning to build mobile applications should understand.”

Craig Neable, .NET Evangelist, Microsoft Corporation

“Mobile solutions and their development present new challenges for enterprises, especially with disconnected/synchronization scenarios. Leveraging best practices and planning mobile development properly are essential to the successful implementation. Building Solutions with the Microsoft .NET Compact Framework provides a solid introduction to mobile development and best practices. It is a great resource for experienced architects and developers who are new to mobile solution development.”

Steve Milroy, Solutions Director, Mobility and Emerging Technologies, Immedient Corporation

Whether you are an architect, developer, or manager, Building Solutions with the Microsoft .NET Compact Framework is your guide to creating effective solutions for mobile devices with .NET. Authors Dan Fox and Jon Box walk you through four essential architectural concepts and programming techniques, using extensive examples and code listings to show you how to develop more robust mobile development projects.

The book briefly describes the context, architecture, and features of both the Framework and Smart Device Programmability (SDP). The heart of the book is its in-depth coverage of key architectural concepts, including local data handling, remote data access (RDA) architectures, robust data caching with SQL Server 2000 Windows CE Edition 2.0 (SQL CE 2.0), and synchronization options. The focus then shifts to localization, security, and deployment, and the final chapter steers you away from potential pitfalls.

You will find helpful pointers to further resources throughout, and a companion Web site includes the source code and links to more information.

This book can be read cover to cover or the focus can be narrowed to key points of interest. It can also be used as a reference, with answers to questions such as:

  • When should you architect and build your applications using the Compact Framework and SDP? Chapter 1

  • What factors besides cost should you consider when planning your company's first Smart Device application? Chapter 4

  • Can RDA allow SQL CE to interact with database products other than SQL Server? Chapter 7

  • How should you handle differences in time zone for users of a world-ready application? Chapter 8

  • How can you overcome the Compact Framework's inability to marshal complex objects within structures? Chapter 11

Both comprehensive and concise, Building Solutions with the Microsoft .NET Compact Framework shows you how to bring the power of .NET to your mobile applications.



Table of contents

  1. Copyright
  2. Praise for Building Solutions with the Microsoft .NET Compact Framework
  3. Foreword
  4. Preface
  5. Acknowledgments
  6. About the Authors
  7. The PDA Development Landscape with the Compact Framework
    1. The Rise of Mobile Devices
      1. Executive Summary
      2. The Need for Mobility
      3. Information Anywhere, Anytime, and on Any Device
      4. Microsoft and Mobility
      5. The Compact Framework and SDP in Context
      6. What's Ahead
      7. Related Reading
    2. Components of Mobile Development
      1. Executive Summary
      2. .NET and Smart Devices
      3. Goals of the Compact Framework and SDP
      4. The .NET Compact Framework
      5. SDP
      6. What's Ahead
      7. Related Reading
  8. Essential Architectural Concepts
    1. Accessing Local Data
      1. Executive Summary
      2. The Need for Local Data Handling
      3. Using File I/O
      4. Handling XML
      5. Working with Relational Data
      6. Displaying Data
      7. What's Ahead
      8. Related Reading
    2. Accessing Remote Data
      1. Executive Summary
      2. Have PDA, Will Travel
      3. Wireless Application Factors around Accessing Remote Data
      4. How the Compact Framework Addresses Accessing Remote Data
      5. What's Ahead
      6. Related Reading
    3. Caching Data with SQL Server CE
      1. Executive Summary
      2. The Role of SQLCE
      3. SQLCE Architecture
      4. Accessing SQLCE
      5. Administering SQLCE
      6. What's Ahead
      7. Related Reading
    4. Primitive Synchronization
      1. Executive Summary
      2. The Importance of Synchronization
      3. What ActiveSync Is
      4. The ActiveSync Architecture
      5. Creating a Partnership
      6. Developing ActiveSync Applications
      7. What's Ahead
      8. Related Reading
    5. Data Synchronization
      1. Executive Summary
      2. SQLCE Synchronization
      3. RDA
      4. Merge Replication
      5. What's Ahead
      6. Related Reading
  9. Additional Programming Considerations
    1. Localization
      1. Executive Summary
      2. The Need for Globalization and Localization
      3. Globalization and Localization Support
      4. Other Localization Issues
      5. What's Ahead
      6. Related Reading
    2. Securing Compact Framework Solutions
      1. Executive Summary
      2. Security Issues and Principles
      3. Securing the Device
      4. Securing the Application
      5. Securing Communications
      6. What's Ahead
      7. Related Reading
    3. Packaging and Deployment
      1. Executive Summary
      2. Packaging and Deploying in the Compact Framework
      3. Versioning in the Compact Framework
      4. Packaging Compact Framework Applications
      5. Deployment and Installation
      6. What's Ahead
      7. Related Reading
    4. Developer Challenges
      1. Executive Summary
      2. Issues and Challenges
      3. Augmenting the Compact Framework
      4. Measuring and Improving Performance
      5. A Final Word
      6. Related Reading

Product information

  • Title: Building Solutions with the Microsoft .NET Compact Framework: Architecture and Best Practices for Mobile Development
  • Author(s): Dan Fox, Jon Box
  • Release date: October 2003
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 0321197887