Posts Tagged ‘compact framework’

How good is my mobile network operator?

Tuesday, March 17th, 2009

I’d like to think that I’m normally a fairly easy-going person, but we all have our pet peeves and for me one of mine is my mobile phone network operator. They drive me nuts – I never get a signal anywhere!

Or at least, so I thought.

Last night, I put together a quick test to keep track of how much time my phone doesn’t have a signal.

It is technically very simple to do, but I’ll describe how it works in a moment. First, the results. Today was a “typical” work day – I spent most of it at my desk which is by a window on a first floor. I don’t work in a lead-lined bunker, and I didn’t hide the phone in a microwave (does that even work?) or anything like that.

I started the test at home this morning, when I normally start checking my emails and twitter. And it’s been running all day. While in my office, the phone was on my desk. The rest of the time it’s been in my pocket.

It looks like I have a signal more often than I thought – for over seven hours it had a signal, with only a little over three hours with no signal. I was expecting a result with time without a signal being greater than time with a signal.

This is hardly a scientific test, but I wonder if my perception is worse than reality? Maybe all it takes is a few times for the phone to not have a signal when I need it for me to get the impression that it “never” has a signal.

(more…)

Writing C++ code to run from C# for .NET Compact Framework

Sunday, May 25th, 2008

I mentioned earlier that I decided to write a DLL in C++ to invoke from my C# app for Windows Mobile. I’d not done this before, so thought I’d jot down a few quick notes about it.

I found a few detailed articles about this on MSDN that made for a good introduction to the topic:

There is a ton of information in these articles, so there isn’t much to add. Instead, I’ll give a quick, high-level overview.

(more…)

Custom properties in Outlook Mobile

Sunday, May 25th, 2008

As part of my plan to write a location-based reminder app using Bluetooth devices, I need a way to assign tasks to people, and people to specific Bluetooth device IDs.

I’ve decided to do this using custom properties in Outlook Mobile – the default PIM that comes on all Windows Mobile smartphones and PDAs.

I’ve not used this API before, but after a little playing, I’m impressed with how straightforward it all is.

The idea is that items in the Outlook Mobile PIM have pre-defined properties – so Contacts have fields such as ‘First Name’, or ‘Postcode’. But you can programmatically add new fields, and then store whatever you want in them.

For my purposes, I can add a “Bluetooth Device IDs” property to Contact items in my address book. I can also add pointers to Contact items to Task items in my to do list.

As this is just meant as a quick hack / proof-of-concept, I’m doing this in C#. The code looks something like this:

(more…)