PDA

View Full Version : Switch Radio on&off from .NET


dep
12-02-2006, 06:11 PM
Hi, I'm a .NET developer and I want to start to develop mobile apps.
My last device is a KJAM that need pen-tap to toggle radio on & off and this is a little frustrating for me (especially when it rains). So I decided to develop a simple (!) app so I can switch my phone on and off simply pressing the "red" button (for example).
Now I found how to bind the red-button-press event to my app but I really not yet found the (damn) method that let me to switch the phone (radio) on and off.
Can someone give me PInvoke samples to use in my C# app?
thnks

Conchas
12-02-2006, 07:51 PM
At least I can point you to an application, that does what you want.

read the thread http://forum.xda-developers.com/viewtopic.php?t=34831&highlight=

See my posts there (Conchas), and the .exe turned available by Koksie.

The same .exe toggles between enable/disable.
It is really great

dep
12-02-2006, 08:00 PM
thanks a lot ...
even if I wish to develop this app by myself (to start to "surf" the PInvoke hell) of course your advice will help me to reduce my frunstration switchin on my phone :-)

Conchas
13-02-2006, 12:59 PM
You can always PM Koksie, asking for the function call he used.

dep
13-02-2006, 01:27 PM
I'll do it but he downloaded the program ... in the meantime ... the hardware button "4" now switch my radio on and off :)