A few weeks ago we announced the Windows Mobile application developer chat, which took place last Thursday. MVPs and Microsoft employees opened the floor to questions and provided a top-ten tip list for Windows Mobile application development. While you can find the top-ten tip list at this Microsoft blog and will soon see the chat transcript at this Microsoft Web site, I thought it might be nice to post some paraphrased excerpts of the type of questions and answers that came up in the chat.
Question: I've recently started looking at Unit Testing (mainly using NUnit) and have come across NUnitLite for unit testing on the Compact Framework, which works well, but have not been able to find any mocking frameworks (such as nMock), any suggestions?
Answer: I would suggest you check out the unit testing available in Visual Studio 2008. This is also available for .Net CF applications.
Question: Hi, I'm searching for a way to become more than the best Cell Tower from RIL.dll. Is there any chance to get the other Cell Towers?
Answer: There is a RIL API for Windows CE that you can theoretically access with Windows Mobile. However, this is not supported so you would be on your own (i.e. without help from MS) in accessing this APIs from WM. See: <http://msdn.microsoft.com/en-us/library/aa923065.aspx>
Question: Is there a system log in Windows Mobile similar to event log on desktop Windows? I am interested in system events.
Answer:Not really. The OpenNetCF does provide some logging capability you could use. In the Smart Device Framework (www.opennetcf.com/sdf) you can use the OpenNETCF.Diagnostics.EventLog. It is the same object model as the .NET Framework but logs to an XML file. Here is an article that uses the class: http://msdn.microsoft.com/en-us/library/aa446519.aspx
Question: I am looking for errors that occur during OTA sync (not through desktop active sync).
Answer: To enable device logging, go to ActiveSync->Menu->Configure Server->Next->Advanced and turn up Event logging to Verbose. The logs will be saved in the Windows\ActiveSync folder. OTA errors will be here.
If you’re interested in future Windows Mobile application developer chats, the next one is on November 11, 2008, 10-11am (PST). For more information about joining chats and upcoming chats, see this Microsoft Web site.