views:

508

answers:

1

Heys Guys!

Just got a rather annoyingly akward question :S

I want to create an easy application for windows mobile devices, i have recently got a HTC HD2 and the connection is being eaten by the weather app, email accounts and windows live service :@

I am getting rather annoyed with this and well i have set myself a project to give myself a small piece of glory and create a working application that will Terminate an idle connection on my phone.

I am using C# and the latest WM6.5 sdk.

How do i access these controls?

Thanks guys!

Ash

A: 

You should use the ConnectionManager APIs to access device connections. It will create them or hand existing connections to your application. Closing a connection is actually very difficult to do (probably becasue it's not terribly nice to tear a connection out from under another running app) and has to be done via P/Invoking to RAS.

ctacke
AHHHH I seeee!! Thankyou! I guess this is the problem with stopping a connection on the phone because like i said like three apps are using this one conn and terminating all calls to it are near impossible for more than a couple of mins i guess :S Well im guna go on with this, thanks for your help. Ill maybe post back how it goes :)Thanks again,Ashh
Ash