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

 
   ... or browse all titles we have
  Freeware Pocket PC: Communication: Wireless
.: Category :.
. Astrology
. Astronomy
. Calculator
. Clock/Calendar
. Communication
  .: Mail (20)
  .: Network (153)
  .: News Reader (17)
  .: Phone (152)
  .: Synchronization (19)
  .: Utilities (16)
  .: Wireless (72)
. 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 :.
Countdown Alarm v3.0
F1 2011 Mobile v1.17
Metro v5.9.7
LateReader v0.27
OPENWEBRADIO v2.0 beta 2
SmartEndKey v1.0
Kalculator v0.12
myPlayer v2.200
WinMoDof v1.6
SonarCE v1.30
WM CANARY v0.1
Magica Band App v1.0
Hosts File Editor v1.00
Blinker v1.7
Smooth YouTube v2.1
.: more :.
.: add your freeware here :.
.: New Palm Software :.
Fallout v1.50
Hit or Miss Solitaire
100 Boxes v1.3
Patio BoxWorld v1.0.0
Snow Baller v1.5
Squared v0.5
Chopper v1.0
Die Roll v1.0
Stressed! v2.0
Fuwafuwa v1.4
.: more :.
.: New PC Software :.
Stellarium v0.11.1
CintaNotes v1.5.1
OkMap v10.0.6
Doszip Commander v2.18
Notepad++ v5.9.6.1
Mixxx V1.9.2
JaBack v9.12
TagScanner v5.1.602
foobar2000 v1.1.9
Q-Dir v4.83
.: more :.
.: Related Links :.
Windows Phone 7 Games




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