Listing and connecting WiFi using WinRt - windows-8

In my office I have 10 WiFi routers.I want to list all those(similar to Network icon in the system tray on windows 8) and connect/disconnect to one of them through Win Rt.
I tried these API
Windows::Networking::Connectivity::NetworkInformation::GetLanIdentifiers();
Windows::Networking::Connectivity::NetworkInformation::GetConnectionProfiles();
NetworkInformation::GetInternetConnectionProfile();
but these Api only list connected one, it doesn't list others
I can achieve this using http://msdn.microsoft.com/en-us/library/windows/desktop/ms706716(v=vs.85).aspx. But I am not sure this Api will be supported on Windows 8 metro mode.
Does WinRt provides Api support for this ??

You cannot connect/disconnect to a network from a Windows App. You can only check informations. The reason is (for Microsoft) that the connection manager is accessible from your app through the charms bar.
This functionality is not exposed to Metro style applications. An operator's app can create profiles for their networks (with known SSIDs), but listing and connecting to visible networks is controlled by the user via the Windows connection management UI, not by an application. [Mike Bishop [MSFT], here]
The advanced connectivity functionnalities are present in Windows.Networking.NetworkOperators, which functionalities are only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.
Take a look at the Microsoft's Network information sample which shows what you can achieve with this API.

Related

Control system offline through application

I'm trying to create a control system in my apartment to control all the devices I have, for example, to turn them on and off using the mobile application, but without using the internet.
I already have the control panel which is connected to all these devices with an on and off switch.
is there any way through the mobile app I can have control over these devices without the need for the internet?

How to get my Windows 10 Universal App to recognize my Microsoft Band

I'm trying to make a Windows 10 Universal App to make a third party tile for my Microsoft Band but it doesn't say in the documentation how to get my App to recognize the Band through USB. It only says how to do it through Bluetooth. The documentation also doesn't tell me how to access the GPS sensor. How do I do all these things?
To answer your first question, USB for the Band is used for charging. In order for you to test, you need to go through via Bluetooth. Your setup should be
Visual Studio > Launch App on your Device (mobile is connected to your laption via USB) > Test App on Mobile (which talks to Band via Bluetooth).
Note: Make sure Band is paired with the Mobile you are using to test.
To answer your second question, you can not subscribe to GPS on the band. It is not opened for thrid party app access. GPS is exclusive at this point.

Skype API Wrapper with WIndows 8 Store App

I need to integrate Skype deep into one of my Windows 8 Store application for Windows 8 Pro. We need to show the online status of the user and trace if the call was placed successfully.
We have tried to use Skype4COM but apparently, Win8 Store Apps can only access limited set of COM components.
I am not open to use to use Skype URIs as i would require to trace the status of the call also.
Any pointers or any help would be awesome!!!
At this time, the Skype API is not a Windows Runtime Component so it can't be used in a Windows Store app. Even though COM objects are similar, they don't work in Windows Store apps because they have a different interface, security model, etc.
Right now, Skype URIs are your only option for a Windows Store app. You can find more information on Skype URIs and Windows Store apps # http://dev.skype.com/skype-uri/skype-uri-tutorial-win8.

Windows-8 browse url,local storage

I have searched around a lot but have not found much of anything in regards to local storage for Windows 8, Windows RT, and Windows Phone apps.
I want to display the browser on a page surf and search webpages. When I find the specified webpage, I want to store the url on a local storage of the device.
On another page, I want to display the URLs in a list for fast select and direct surf to the url. I am developing with visual studio 2012 and vb.net.
Local storage options for Windows Store apps is pretty well covered in the dev center topic Accessing app data with the Windows Runtime
In Windows 8 (Windows Store apps), you could use app settings (registry based), local application data (file-based and sandboxed) as well as the roaming versions thereof.
Since you mentioned Windows Phone 8, I'll add that while the same Windows Storage APIs are surfaced for Windows Phone, only local application data will work directly. In Windows Phone 8, local application data is another way of handling isolated storage; however, there is no built-in roaming data option. Additionally, app settings as implemented in Windows 8 is not available in Windows Phone, but you can use isolated storage settings which is semantically equivalent.
I have gone through the web browser terms and conditions, and there it is clearly mentioned that you cannot use the web browser for general browsing, and if you are doing the same, your app would be rejected by the microsoft app store
For reference please go through
http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN6

Win8 Desktop vs Win8RT

We are developing a lightswitch app that will have a silverlight plug in controller that will allow for handwriting recognition and translation. we want to use this exclusively on a win8 tablet. we know that it has to be used on the desktop side of the tablet. We also know that the win8rt side has access to different tools that allow of handwriting recognition. (InkManager class) - is there any way to get access to these necessary classes from the desktop side of the win8 tablet.
This post by Scott Hanselman might help you.
Quote:
I was trying to access some of the sensors that are built into this
Intel Ultrabook that runs Windows 8. However, while there's support
for Location Sensors built into the .NET 4 libraries on Windows 7 and
up, I want to access the complete Sensor and Location Platform that is
built into Windows 8 itself. Those APIs are available via COM and I
could call them via COM, but calling them via the WinRT layer is so
much nicer. Plus, this is kind of why WinRT exists.
There's also an example using VB.NET on TheCodeProject