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 (15)
  .: Network (81)
  .: News Reader (11)
  .: Phone (95)
  .: Synchronization (17)
  .: Utilities (15)
  .: Wireless (52)
. 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 :.
G-Alarm v0.2.1
GSlide v0.3.6
Metro v5.7.0
PictoPocket v0.1
RemoteTracker v2.0-0
Settings+ v0.1.2b
SensorLock v0.2.2
GPS Mission v1.0.1
Pocket Pazaak v0.91
Pocket Uno v1.31
S2V v0.42
Pocket RAR v3.80 beta 4
Caisses v1.2
mDiamondz
mGomoku
.: more :.
.: add your freeware here :.
.: New Palm Software :.
Pneumonia HAP-HCAP-CAP
PE & DVT dx tool
This Week v3.1
PocketPad v1.0
Ye Olde Dice v1.0
Stopwatch v2.0
Month Overview v1.12
Timing v2.11
SC-102P v1.92
PowerBtn v2.0
.: more :.
.: New PC Software :.
Resize My Pictures
OkMap v5.1.1
VirtualBox v2.0.0
Xpadder v5.3
Asterisk Key v8.3
TheWorld Browser v2.3.0.3
AIMP Classic v2.50.293
RapidTyping Typing Tutor
Orbit Downloader v2.7.5
Desk Drive v1.6
.: more :.
.: Advertisement :.
.: Information :.




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