Windows Mobile A2DP Auto connect

april 24th, 2009

I recently bought a car radio that supports a2dp, but I found a problem with my windows mobile phone. It seems that the phone automatically connects the hands free control but not the a2dp stereo. So I searched the internet and the only solution I could find was the program a2dp toggle. This program connects the configured a2dp stereo device with the mobile. The today screen plug-in of this application does this automatically. But it seems that the today screen plug-in has a memory leak and I cannot use the today screen plug-in because I want to use the HTC Flow interface or the windows default interface of windows mobile 7.

So I started with developing an application that automatically runs the a2dp toggle executable when a hands free control is connected. I used an example on the internet for creating managed services and created a service of this application. The result is that the car radio is instantaneously connected when the hands free gets connected. 

You can download my application here:

Download Wian Auto A2DP

Beware, first you have to install the a2dp toggle application. There is no configuration necessary, my application finds a2dp toggle automatically.

MIX09 | MIXtify | 10K - Warp Jumper

januari 15th, 2009

My colleague John entered this coding/design competition and inspired me to also enter. I’ve created a 3D game, Warp jumper, for the competition, it represents a remake off the old commodore 64 game "Trailblazer".

The challenge was to keep the source files under 10kb. When I heard that, I immediately started to get over the top impossible ideas and I choose for the 3d game.

Save to say, I did it a 3d game under 10k wheee. The game is written in Silverlight 2.

I didn’t win the competition, but thank you for giving me a rating. You can still enjoy my game here, Warp Jumper!

My Music Taste

oktober 1st, 2008

1_wian007

Hobby Project Ideeën

augustus 28th, 2008

Na een praatje met één van mijn collega’s te hebben gehad. Zijn we erachter gekomen dat veel mensen goede ideeën hebben maar deze niet zelf kunnen of willen uitvoeren en dat er mensen zijn die goed zijn in dingen uitvoeren maar geen goed idee kunnen krijgen.

Dus maar deze topic geopened om mensen hun ideeën te laten spuien. Zodat ik of een andere hobbyist het uit kan gaan voeren.

Dus kom maar op met jullie ideeën…

HTC Touch Today screen plugins in C#.net

juni 1st, 2008

Ik liep zelf al een tijd met het idee om zelf plugins te maken voor het begin scherm. Na een tijd zoeken kwam ik bij de SDK waarmee ik dit kon gaan doen.
De os van de HTC Touch is Windows Mobile 6 professional, de SDK die je hiervoor nodig hebt is dan ook de “Windows Mobile 6 Professional SDK”.

Ik kwam er al snel achter dat today plugins in unmanaged code (C++)moeten gemaakt worden, er zitten namelijk meerdere samples bij de sdk voor PocketPC (dus voor de WM6 pro) voor managed (C#.Net) en unmanaged code.

Gelukkig zijn er ook mensen die goed zijn met C++ en voor de C# programmeurs het leven makkelijk gemaakt hebben door een plugin te maken die C# usercontrols openen en als today item laten zien.

Het werkt door de plugin te installeren op de windows mobile en vervolgens een Class Libary Project aan te maken met daarin een Usercontrol.
De Usercontrol wordt aangevuld met een attribute en je hebt een werkende plugin.

Dit stukje software kan hier gevonden worden: ChrisTec ManagedTodaySreen

Met deze kennis op zak maar begonnen met een plugin waarmee je kan switchen tussen WLAN en GPRS.

Helaas op dit moment vast gelopen op het wijzigen van instellingen,
Het schijnt dat je de registry moet aanpassen.

Het uitlezen van alle statussen is makkelijk door gebruik te maken van de classes in de namespace Microsoft.WindowsMobile.Status. Hier hebt je bijvoorbeeld de class SystemState met allerlei statussen.