windows-8

Search and Connect to Bluetooth device in Windows 8/8.1 Store apps?

孤人 提交于 2019-12-09 19:36:36
问题 I need to search and connect to a Bluetooth device using a Windows store app. I am using XAML/C# and Windows 8.1. The device supports RFCOMM. What I have done so far: If I pair the device to my system and then search for the device using var devicesInfoCollection = await DeviceInformation.FindAllAsync(); I get the Bluetooth Device, however is there a way to find the device when its still not paired. Thanks 回答1: There is no way to do that (in Windows 8.1). You have to pair your device first,

How to deploy phonegap app directly to device

白昼怎懂夜的黑 提交于 2019-12-09 18:32:07
问题 I have a Phonegap 3.3.0 project set up and working perfectly as much as that I can build an .APK from the cmd at pat: jamie@Hutber-8 /c/var/www/sexdiaries.co.uk/sdapp/app $ phonegap build android [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] compiling Android... [phonegap] successfully compiled Android app I have my Phone plugged in, its a nexus 5 which seems to have problems with windows 8, but I believe its working correctly: $ adb devices

Error : DEP0700 : Registration of the app failed. error 0x80070002: Windows cannot register the package because of an internal error or low memory

流过昼夜 提交于 2019-12-09 16:34:08
问题 I am using visual studio 2013 to create a window 8.1 store app. When I run simulator. I received error message "Error : DEP0700 : Registration of the app failed. error 0x80070002: Windows cannot register the package because of an internal error or low memory. (0x80073cf6) App1". I have try reinstall it, but still have this error. How do solve it? 回答1: problem is "visual studio is not able to delete the application data in local folder" so when you go in the location C:\Users\UserName\AppData

Windows 8 - .NET TCP AcceptAsync callback not firing (blocked by Console.ReadLine())

孤者浪人 提交于 2019-12-09 14:14:25
问题 I'm experiencing an issue specific to Windows 8 and VS2012. I have a TCP socket server and client and am doing some testing on the local network. With sysinternals TCPView, I can see that packets are sent from the TCP client and arrive at the TCP Server (I see the packet counters increase). However, it appears as if the data is not making it to the application stack? The very same build runs without issues on Windows 7. I have the Windows 8 firewall turned off and run both process with

How to create variable sized group panels to fit the items in Windows 8 XAML

笑着哭i 提交于 2019-12-09 13:44:27
问题 The problem I'm having is the grouped grid view sizes all of its groups to the size of the first group as in the screenshot below: I need the groups to have different widths to accomodate their children. In this case the second group should be wider and the third group should be narrower. The code for the test app I wrote is as below: XAML (MainPage.xaml) <Page x:Class="GroupingBugTest.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas

innerHTML adds text but not html tags

萝らか妹 提交于 2019-12-09 13:42:01
问题 First off sorry for this beginner question but I just recently learned JavaScript and I am now learning to develop Windows 8 apps. Here is the code in question: var numbers = [1, 2, 3, 4, 5]; id('numberList').innerHTML = '<ul>'; for (var x in numbers) { id('numberList').innerHTML += '<li>' + x + '</li>'; } id('numberList').innerHTML = '</ul>'; I have this in the "ready" function (for any Windows 8 developers) in my JS file and 'numbersList' refers to a section tag in the body (of the HTML

How to Display Gridview items with variable width in Windows 8?

ⅰ亾dé卋堺 提交于 2019-12-09 13:15:36
问题 My GridView items having the size of it's first item size . How do i can change this behaviour ? How to display GridView items with variable Width as per the content ? I want to show the first one but i am getting second one. Any suggestion to do that? 回答1: Check Windows 8 GridView and Variable-Sized Items and Different Sized Tile Items in WinRT GridView and also check Variable Sized Grid Template Hope this help 回答2: You can create such view of GridView by setting ItemsPanel to WrapPanel ,

Adding Windows 8 touch support to existing WinForms application

橙三吉。 提交于 2019-12-09 09:45:04
问题 I have an existing Windows Forms desktop application targeting .NET Framework 4 and would like to add Windows 8 touch support to it. Currently the program works fine in Windows 8, and I can potentially just resize some of the elements to make it more user-friendly on touch devices. However, adding gestures such as pinch-to-zoom on datagrids, and swipe support for other elements would go a long way to making the application more modern in a touch-only environment. I'm investing in Visual

How to register for Win8 periodic tile notifications?

馋奶兔 提交于 2019-12-09 06:39:49
问题 I am working on a Win8-UI-App (previously called Metro...) and trying to implement Periodic (Documentation for different methods) Tile Updates (Live Tiles) for the first time. I found a couple of very good resources on the internet and was able to do it. Unfortunately the question of where I should register for the notifications remained unsolved: Do I have to register for Notifications every time the app starts (e.g. in the App.xaml.cs OnLaunched() Method)? - Or is there an other, more

Open a PDF file from a WinJS Application

≯℡__Kan透↙ 提交于 2019-12-09 06:33:25
问题 I've got an application in which the user clicks a button, and should be presented a PDF that is stored in the application. They can view the PDF internally in the app, or launch the native windows PDF viewer, either way is fine. How can I provide a link / event handler for the button click to launch a view of a PDF file? 回答1: Use the LaunchFileAsync function of the Launcher class, description: Starts the default app associated with the specified file, using the specified options. example