Microsoft® Surface® Bluetooth Connect Code Sample - SDK 2.0

Description  This is a completly new version of Microsoft® Surface® Bluetooth Connect Code Sample supporting the new Surface  SDK 2.0 and the last 32feet library with many imporovments. It also make use of the Software Lab SDK available on CodePlex. This code sample can help

C# (4.3 MB)
5 Star
3,987 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • bluetooth file name change
    2 Posts | Last post April 19, 2013
    • Dear sir
      I download your application and make some change.but it seem has an problem,
      when i send the image file to mobile. it will change the file name and .jpg
      attribute will also deleted. I attach the code. i change image source to c:/... and in librarycontain i using folders name as group name. So can you tell me why when i received image in mobile. it will change name to group name and mobile can't know how to open it. eg. folder name CAR. Recceived image name CAR_001. Actually image name Benz.jpg.
       public static BusinessCollection<ContentItem> GetData()
                  //string filesPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, RESOURCE_FILES);
                  string filesPath = @"C:\Users\Public\Pictures\Sample Pictures";
                  BusinessCollection<ContentItem> retVal = new BusinessCollection<ContentItem>();
                  string[] dirs = System.IO.Directory.GetDirectories(filesPath);
                  string[] names;
                  int i, j;
                  ContentItem item;
                  for (i = 0; i < dirs.Length; i++)
                      names = System.IO.Directory.GetFiles(dirs[i]);
                      for (j = 0; j < names.Length; j++)
                          string tt = System.IO.Path.GetFileName(names[j]);
                          item = new ContentItem(Path.Combine(dirs[i], tt), Path.Combine(dirs[i], tt), dirs[i].Remove(0,filesPath.Length+1));
    • Hi
         let's talk about this on the Surface Application Design and Development
  • RSSI
    1 Posts | Last post February 12, 2013
    • Hi,
      is it possbile to get the RSSI ( of the clients?
  • Hi
    1 Posts | Last post January 18, 2013
    • why I cann't  run your code, I have install Surface SDK 2.0 and XAN, but it reports errors, please help me, I am new ,Thanks.
  • Bluetooth Pin
    2 Posts | Last post November 05, 2012
    • Hi, 
      When I try to connect to Rich-Thomas, it ask for a bluetooth pin, what is it? I've tried 0000 and 1234. 
    • Hi you have to pair your Bluetooth device with the os hosting the sample before to send contents to it
  • Bluetooh requeriments
    2 Posts | Last post September 07, 2012
    • HI,
      I'd download your solution just to explore more about this subject.
      I have a laptop with the Surface SDK 2.0 intalled and when I try to run your project I get the error "No supported Bluetooth protocol stack found."
      Can you tell me what it means?
    • I already solve the problem by romoving the toshiba drivers for bluetooth stack and let windows intall Microsoft drivers.