Bluetooth on wp7

I need to develop an app, which has to connect to a bluetooth module, how can I do this?

Upvotes: -1

Views: 1148

Answers (5)

Damien
Damien

Reputation: 2901

As of today we developers don't have access to the bluetooth module, hopefully in WP8 we will have access to it through the SDK.

Upvotes: 2

Mr. Lonely
Mr. Lonely

Reputation: 21

I've develop a application for send and receive image/video/audio files for Windows Phone, BI submit this application on microsoft store, They rejected ma application. they said that this application allow users to send copyright protected data, so they can't publish this kind of application.

Upvotes: 2

Mac
Mac

Reputation: 157

Use this codes for your button event. You can also enable Wifi and even airplane mode with this codes. Just replace the word Blutooth to Wifi or airplane mode.

private void Blutooth_Click(object sender, EventArgs e)
{
   ConnectionSettingsTask Task = new ConnectionSettingsTask();
   Task.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;
   Task.Show();
}

Upvotes: 0

Prithvi Raj Nandiwal
Prithvi Raj Nandiwal

Reputation: 3294

you can use the Launcher “ConnectionSettingsTask” to achieve it.

Just use the ConnectionSettingsType to Bluetooth and call the show method of the ConnectionSettingsTask . This will Launch the Bluetooth Settings Window and lets the user to change the Bluetooth settings or even enable or disable the Bluetooth.

You use the Launcher , use the namespace Microsoft.Phone.Tasks;

private void LaunchBluetoothSettingsForm()
    {
       ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
       connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;
       connectionSettingsTask.Show();
    }

Upvotes: 2

sleepwalker
sleepwalker

Reputation: 1032

There is no way to get access to Bluetooth in current versions of WP7 API.

Upvotes: 5

Related Questions