Our free network: Freeware for PC | Freeware Palm | Freeware Pocket PC | Heart 'n Souls | Palm Gaming World

 
   ... or browse all titles we have
  Freeware Pocket PC: Communication: Wireless
.: Category :.
. Astrology
. Astronomy
. Calculator
. Clock/Calendar
. Communication
  .: Mail (19)
  .: Network (127)
  .: News Reader (15)
  .: Phone (145)
  .: Synchronization (18)
  .: Utilities (16)
  .: Wireless (66)
. Database
. Docs
. Educational
. Financial
. Games
. Graphics
. Hobbies
. Medical
. Misc/Fun
. Multimedia
. Religion
. Travel
. Utilities
.: Advertisement :.
Bluetooth Manager

Size: 249 KB
Date: July 10, 2008
Type: Freeware
Requirements:
  • Windows Mobile 5.0 and later
Download:
  • BluetoothManager.cab



Author: Chris Craft
Home: http://www.cjcraft.com/
Email: cjcraft@mail.com



Description:
I always like an application to have a little eye candy, and that explains the interactive Bluetooth logo at the top of the screen. It is in color when the Bluetooth is enabled, and grayscale when Bluetooth is off. Clicking the Bluetooth logo toggles the Bluetooth radio from on to off.

I added a multiline textbox so users could see a history of Bluetooth radio state changes. There are buttons to allow users to directly turn the Bluetooth radio on and off.

One caveat is that this uses P/Invoke to access the Microsoft Bluetooth stack dlls.

Here are the calls:
    [DllImport("BthUtil.dll")]
    private static extern int BthGetMode(out RadioMode dwMode);

    [DllImport("BthUtil.dll")]
    private static extern int BthSetMode(RadioMode dwMode);

Also, we had to take advantage of State and Notification Broker API. Here's why: if the state of the Bluetooth radio were to change due to an action outside of our program we wouldn't know about it. That's where SNB API comes in. It allows us to subscribe to notifications for almost any event that we are interested in. The code is below.
    SystemState bluetoothStatePowerOn = new SystemState(SystemProperty.BluetoothStatePowerOn);
    bluetoothStatePowerOn.Changed += new ChangeEventHandler(bluetoothStatePowerOn_Changed);

    void bluetoothStatePowerOn_Changed(object sender, ChangeEventArgs args)
    {
        UpdateScreen();
    }

The last thing to check out is the auto shutdown code: it's simple but works great. There is a timer that waits for 1 minute to pass, and then there is a loop for the count of ten, which uses a Thread.Sleep(1000) to pause the application for 1 second each iteration of the loop. This creates a great effect that keeps the user from thinking the application has crashed.





 SOURCE  http://www.cjcraft.com/blog/2008/06/03/30DaysOfNETWindowsMobileApplicationsDa...



Reviews:

Write a review

.: Advertisement :.
.: New Software :.
MetalDetector v0.2.0.0
Accountant
mobilePVD v2.1
cleanRAM v2.0
OpenMobileMaps v1.2
ElectroForms Expenses v1.0
PushPush v1.01
MMTaskManager v1.1
ShopBuddy v0.90
S2U2 v2.33
ShortenMobile v1.3
MobileTraveler v2.1
myPlayer v1.200
Power Radio v2.3.2.0
Optical Illusions v2
.: more :.
.: add your freeware here :.
.: New Palm Software :.
Lamp v1.2
NMEA Logger v1.0
ChordDB v2.3
FieldPlus v2.2
EN TH v1.2
ChronMemo v1.05r
FieldPlus v2.2
EN TH v1.2
ChronMemo v1.05r
DensCalc v1.1
.: more :.
.: New PC Software :.
Unreal Commander
Q-Dir v4.13
Norman Malware Cleaner
UltraDefrag v4.2 RC4
BitComet v20100318 Beta
TeamViewer v5.0.8081
Opera v10.51 B3315
MPlayer for Windows
AkelPad v4.4.
Coollector v2.70
.: more :.
.: Related Links :.
windows mobile software
windows mobile games




Copyright © 2002 FreewarePPC.com. All Rights Reserved.
FreewarePPC.com is not affiliated with or endorsed by Microsoft in any way.