I've already asked this but for iOS and they told me it was impossible.
I migrated to android and Windows Phone.
For Android I've found but not tested this
http://www.firstdroid.com/2010/05/12/get-provider-gsm-signal-strength/
AFAIK it works. My problem is I'm now testing windows phone but I'm unable to find anything related to this problem. Some people mention WMI and I'm unable to figure out what this is.
Thanks
P.s I,m programming for Windows Phone 8 and 7.1
The closest thing we have is Microsoft.Phone.Net.NetworkInformation and it's parent namespace Microsoft.Phone.Net . These API's don't provide the raw data for the signal but they are able to tell you if the phone is on mobile broadband, the network operator, roaming info, etc. It's designed so that you app can be away of data usage, and intelligently respond when using 3G vs Wifi.
There is a GetSignalBars method in ConnectionProfile, available in Windows Phone 8
http://msdn.microsoft.com/library/windows/apps/windows.networking.connectivity.connectionprofile.getsignalbars.aspx
Related
When you plug in (via USB) a mobile phone into a Windows 10 laptop, it comes up as a device. How do I access the files on this in C#. For example an iPhone when plugged in shows like this:
I would like to get all of the data off of that. I have already tried using the paths 'This PC\Apple iPhone\Internal Storage' and '\This PC\Apple iPhone\Internal Storage', both crashed the programming saying that they could not find the files.
I am then going to read and copy files off this in C#
Note: I would like this to work for all types of phone, not just an iPhone (Android and iPhone would be fine though).
The real problem you're trying to resolve is to access a device through the MTP protocol. The question has been asked before on SO.
You can try to use Windows Portable Device API directly (I'm assuming this is windows due to the screenshot).
Another option would be using the MediaDevices NuGet package like the linked answer does.
I'm beyond confused trying to grasp what is what regarding Microsoft's so called "Runtime" Apps (also called "Universal" or the convergence of Windows 8.1).
I'm currently building an app for both Windows 8.1 and Phone 8.1 and wondering, is the Notification API exactly the same? Since I'm having trouble understanding what is what, it's hard to google what it is I'm after.
If I googled for "Phone 8 apps" it's obviously wrong, because they are something different.
Optimally I just wanna use the exact same code for the phone app as for the Windows 8.1 app, is that possible?
Sorry if I made no sense and thanks!
If you create an universal app, you'll be able to share the exact same notification code between desktop and phone, as they both share the same runtime (called WinRT). Any code you find to implement notifications on Windows 8.1 is directly applicable on Windows Phone 8.1
I am developing an app for a Windows 8 tablet using C# and I need to write a module that creates a GPRS connection using a SIM card.
I have tried searching for this but most results I find talk about a GPRS connection either for Windows CE or Windows Mobile and I presume the code for Windows 8 would be different.
If anyone can give me some advice on how I can create this module or link me to some websites that may explain how I can achieve this I would be great full.
Thanks...
Assuming you're programming an app in the environment formerly known as Metro, you need these WinRT APIs.
There are C# code examples provided.
This is not to be confused with the Windows 8 desktop, which has its own separate set of APIs here.
These APIs are valid for LTE, UMTS/HSPA etc as well as GPRS.
I'm currently working on getting a Leonardo device recognized and communicating with my app over a serial port in C# for the Windows 8 App Store. I'm using http://msdn.microsoft.com/en-us/library/windows/hardware/dn312121(v=vs.85).aspx#step2 as a guide, in conjunction with http://code.msdn.microsoft.com/windowsapps/USB-CDC-Control-sample-5ba19caa to guide me.
I'm having problems however in the sense that my Arduino device isn't showing up despite me entering my PID/VID and Class/Subclass/Protocol so I feel I'm missing some steps and was hoping someone that has experience with this could point me to a more specific/granular example.
My device is an Arduino Leonardo and I'm running windows 8.1 using Visual Studio 2013 Ultimate, code is in C#
Any help is appreciated!
Just general thoughts on regular windows applications (not aware of W8 AppStore):
Might help or might not, in the second case, sorry for wasting your time...
To get a "regular COM" device in Windows, without any additional drivers, you should make the device appear as USB Communication Device Class (aka CDC) - this is, among others, done via the appropriate class/subclass/protocol. The VID/PID don't care. This means the device should provide CDC/ACM USB descriptors to the enumerating USB host (windows) and implement the required endpoints and commands - supposedly there is already something existing for your board and you downloaded the firmware to it, right? You might want to try to connect such configured device to windows and after successful enumeration, new COM port should appear. If you program regular application, you just connect to such COM port via SerialPort class instance, no matter it is provided via USB subsystem... If this works, you should be able to start the AppStore part (where I have no clue how to help).
I'm just going to answer this as not currently possible. I ended up writing a desktop WPF application using metro UI/UX guidelines. Between that and ClickOnce deployment the store app feel is fairly well recreated, despite the store being ideal.
I sincerely hope that Microsoft decides to support this in the near future, the Metro SDK is really nice and I would love to eventually port it.
I've recently started developing apps for Windows Phone 8 (I have no prior native app development experience, I'm primarily a web app developer) and I have been looking for a good HTTP caching framework for Windows Phone.
I'm working with a REST based API which returns JSON data and want to incorporate response caching with different caching policies depending on the data.
I stumbled upon AgFx which pretty much fits what I've been looking for but that was primarily for Windows Phone 7. I haven't been able to find something similar for Windows Phone 8, which works with the Portable HTTPClient library (I'm looking to reuse my code between Windows Phone and Windows 8).
I was wondering if anyone from the Stack Overflow community ever came across something which provides a flexible data caching for WP8, or if someone was ever able to port AgFx to Windows Phone 8.
There is something similar available and it's from Q42
Take a look at the code here: https://github.com/Q42/Q42.WinRT
It's both for win rt and wp8
Also, there has been an effort to port AGFX to Win RT by Indrajit Chakrabarty ( twitter #indyfromoz ), but it wasn't as stable when I tested it...
Link for that here https://github.com/indyfromoz/AgFx