Visual Studio Live! - Orlando

Posted October 13, 2014 10:13 PM Categories: Gaming | VSLive Orlando | Windows 8.1 | Windows Phone | Async | Events

I will be presenting 3 sessions at Visual Studio Live! in Orlando this November 17-21.  The conference is a full 5 day event, and part of the Live! 360 conference, covering SharePoint, SQL Server, Modern Apps and more.  Plus, there’s still time to register and save $600 if you register before 10/15/14!  For this event, I’ll be presenting:

VST05 Building Your First Universal Application for Windows Phone and Windows Store
Date: Tuesday, November 18, 2014
Time: 11:00am – 12:15pm
Level: Introductory

Universal Apps enable developers to build apps for Windows Store and Windows Phone simultaneously while sharing code, controls, and other assets between them. In this session, you will learn how Universal Apps work as we build a simple app from start to finish using this new project type. We will cover what can and can't be shared, and how to best structure your project for maximum re-use.

VSH03 Games Development with Unity and Other Frameworks for Windows and Windows Phone
Date: Thursday, November 20, 2014
Time: 8:00am – 9:15pm
Level: Introductory

There are a variety of platforms and frameworks which can be used to build games on both Windows and Windows Phone depending on the complexity of the game and the developer's skill level. In this session, we will delve into the many options available to developers, including DirectX, Unity, MonoGame, and more!

VSH08 Writing Asynchronous Code using .NET 4.5 and C# 5.0
Date: Thursday, November 20, 2014
Time: 9:30am – 10:45pm
Level: Introductory

A variety of new features were added to the .NET 4.5 Framework, including support for easily writing asynchronous code. This session will introduce the concepts of asynchronous programming, .NET Tasks, how to ensure your UI remains responsive, and how to do all of this properly in your own applications using the new "async"and "await" keywords. If you're looking for ways to provide a better, smoother experience for your users, don't miss this session!

LSPK61

Get more information on the conference at:

Visual Studio Live! – Washington DC

Posted September 8, 2014 12:43 PM Categories: Gaming | VSLive | Events | Windows Phone | Windows Runtime

I will be presenting 2 sessions at Visual Studio Live! in Washington DC this October 6-9.  The conference is a full 4 day event and there’s still time to register and save $400 if you register before 9/10/14!  For this event, I’ll be presenting:

TH07 Building Your First Windows Phone 8.1 Application
Date: Thursday, October 9, 2014
Time: 9:30am – 10:45pm
Level: Introductory

Expand your mobile horizons with Windows Phone! Developing applications for the phone is quite similar to building XAML applications for other platforms. In this session, Brian will demonstrate the fundamentals of Windows Phone development while building a very simple application which covers all of the important points of the new platform's architecture, including the developer tools, device emulator and touch input. We will also discuss what's new with the Windows Phone 8.1 update and how you can use it to build better apps.

TH11 Building Games for Windows and Windows Phone
Date: Thursday, October 9, 2014
Time: 11:00am – 12:15pm
Level: Introductory

There are a variety of platforms and frameworks which can be used to build games on both Windows and Windows Phone depending on the complexity of the game and the developer's skill level. In this session, we will delve into the many options available to developers, including DirectX, Unity, MonoGame, and more!

DCSPK22

Get more information on the conference at:

Visual Studio Live! – Redmond

Posted May 27, 2014 8:03 PM Categories: Events | VSLive Redmond | Async | Visual Studio

I will be presenting 2 sessions at Visual Studio Live! in Redmond this August 18-22.  The conference is a full 4 day event and there’s still time to register and save $500 if you register before 6/11/14!  For this event, I’ll be presenting:

TH15 Performance and Diagnostics Hub in Visual Studio 2013
Date:
Thursday, August 22, 2014
Time: 11:00am – 12:15pm
Level: Intermediate

Visual Studio 2013 has introduced a new Performance and Diagnostics hub which encompasses a variety of new and old tools to profile your Windows Store applications. In this session, we will take a detailed look at all of the tools that the Performance and Diagnostics Hub has to offer with both XAML and HTML/JavaScript Windows Store apps.

TH25 Writing Asynchronous Code Using .NET 4.5 and C# 5.0
Date:
Thursday, August 22, 2014
Time: 3:45pm – 5:00pm
Level: Introductory

A variety of new features were added to the .NET 4.5 Framework, including support for easily writing asynchronous code. This session will introduce the concepts of asynchronous programming, .NET Tasks, how to ensure your UI remains responsive, and how to do all of this properly in your own applications using the new "async" and "await" keywords. If you're looking for ways to provide a better, smoother experience for your users, don't miss this session!

RDSPK23

Get more information on the conference at:

Connect to a Bluetooth Serial Device with Xamarin.Android

Posted April 27, 2014 3:48 PM Categories: .NET | Android | Bluetooth | Hardware | Xamarin

Xamarin channelI have been exploring the Xamarin tools recently and decided to try my hand at connecting some Bluetooth hardware to Android for a project that will be released soon.  I have learned quite a bit about Bluetooth on Android and decided to write up a short description on how to connect to a Bluetooth serial device via RFCOMM/SPP.

First, grab an instance of the default BluetoothAdapter on the Android device and determine if it is enabled:

BluetoothAdapter adapter = BluetoothAdapter.DefaultAdapter;
if(adapter == null)
    throw new Exception("No Bluetooth adapter found.");

if(!adapter.IsEnabled)
    throw new Exception("Bluetooth adapter is not enabled.");

Next, get an instance of the BluetoothDevice representing the physical device you’re connecting to.  You can get a list of currently paired devices using the adapter’s BondedDevices collection.  I use some simple LINQ to find the device I’m looking for:

BluetoothDevice device = (from bd in adapter.BondedDevices 
                          where bd.Name == "NameOfTheDevice" select bd).FirstOrDefault();

if(device == null)
    throw new Exception("Named device not found.");
Finally, use the device’s CreateRfCommSocketToServiceRecord method, which will return a BluetoothSocket that can be used for connection and communication. Note that the UUID specified below is the standard UUID for SPP:
_socket = device.CreateRfcommSocketToServiceRecord(UUID.FromString("00001101-0000-1000-8000-00805f9b34fb"));
await _socket.ConnectAsync();

Now that the device is connected, communication occurs via the InputStream and OutputStream properties which live on the BluetoothSocket object  These properties are standard .NET Stream objects and can be used exactly as you’d expect:

// Read data from the device
await _socket.InputStream.ReadAsync(buffer, 0, buffer.Length);

// Write data to the device
await _socket.OutputStream.WriteAsync(buffer, 0, buffer.Length);

That’s it!  Now to get things working with iOS…

Visual Studio Live! – Chicago

Posted April 8, 2014 3:04 AM Categories: .NET | Async | Events | VSLive Chicago

I will be presenting 2 sessions and speaking on the closing panel at Visual Studio Live! in Chicago this May 5-8.  The conference is a full 4 day event and there’s still time to register and save $200 if you register before 4/16/14!  For this event, I’ll be presenting:

TH10 Performance and Diagnostics Hub in Visual Studio 2013
Date:
Thursday, May 8, 2014
Time: 11:00am – 12:15pm
Level: Intermediate

Visual Studio 2013 has introduced a new Performance and Diagnostics hub which encompasses a variety of new and old tools to profile your Windows Store applications. In this session, we will take a detailed look at all of the tools that the Performance and Diagnostics Hub has to offer with both XAML and HTML/JavaScript Windows Store apps.

TH20 Writing Asynchronous Code Using .NET 4.5 and C# 5.0
Date:
Thursday, May 8, 2014
Time: 3:00pm – 4:15pm
Level: Introductory

A variety of new features were added to the .NET 4.5 Framework, including support for easily writing asynchronous code. This session will introduce the concepts of asynchronous programming, .NET Tasks, how to ensure your UI remains responsive, and how to do all of this properly in your own applications using the new "async" and "await" keywords. If you're looking for ways to provide a better, smoother experience for your users, don't miss this session!

I’ll also be speaking on the Conference Wrap-Up Panel at 4:30pm on Thursday.  Come and ask questions!

CHSPK23

Get more information on the conference at: