Start Mobile Developer Nuggets David Goon 27 October 2005
Programs Autorun Installing Compact Framework 2.0 Pocket PC Security State and Notification Broker Managed Pocket Outlook Object Model SMS Interception Compact Framework Performance Counters Application Localization
Autorun Build native or for Compact Framework 1.0 Directories for Autorun.exe MIPS (41xx series and 3910)4000 SH SH StrongARM2577 XScale1824 Execution InsertionInstall RemovalUninstall
Installing CF 2.0 Redist files are in C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\ WindowsCE Check version on the device first System.Environment.Version Use WCELoad.exe to launch CAB
Pocket PC Security IDPolicy Value 4101Default is SECROLE_USER_AUTH (16) 0 unsigned.cab files cannot be installed unsigned applications not allowed to run 1 unsigned applications allowed to run indicates user prompted. 1 indicates user not prompted.
State and Notification Broker New in Windows Mobile System States Transient and Persistent Notifications Conditional Notifications Currently stored in the system registry
Managed POOM New in Windows Mobile 5.0 Easy to access and manipulate PIM items Add Custom Properties To Extend Use State and Notification Broker to be advised of changes
SMS Interception Use to loop back on emulator Intercept based on a tag Can be made persistent Sample Business Requirement Customer calls Sales Office Office obtains details and locates sales person Sales person needs to be alerted with accurate information
CF Performance Counters.stat Enable through Device registry setting HKLM\SOFTWARE\Microsoft\.NETCompactFrame work\ PerfMonitor Value is Counters (DWORD) = 1 More details at us/dnnetcomp/html/netcfperf.asp What does.stat tell you? Working set and performance statistics
App Localization New strongly-typed resource manager Create strings in RESX files Files can then be sent away for translation Then incorporate into project All access through generated class
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft, Windows Mobile, Outlook, PowerPoint and Excel are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Microsoft makes no warranties, express or implied, in this summary. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Connectivity and synchronization may require separately purchased equipment and/or wireless products (e.g., WiFi card, network software, server hardware, and/or redirector software). Service plans are required for Internet, WiFi and phone access. Features and performance may vary by service provider and are subject to network limitations. See device manufacturer, service provider and/or corporate IT department for details.