C# Xaml Winrt/Universal App determine if mobile device - c#

Okay so here's the deal I have a windows 8.1 Store app (WINRT) does not currently support Windows Phone(Maybe for windows 10) In any case I have advertisements setup, which work. But I have SMAATO complaining I'm sending too many requests that are from non-mobile devices (pretty much everything) How can they tell it's from a non-mobile device? In any case I'd like to catch this before hand and if it seems like SMAATO won't provide an add then to use a different provider. (Unfortunately at the moment the only one who whole heartedly supports WinRT/Universal APP advertisements is Microsoft's PubCenter, and Adduplex., If someone can recommend another I'll give it a try.)

Related

Does windows phone allow application to turn off/on the screen?

As I mentioned in the title, I plan to write an sensor-based application for windows phone platform, but I don't know if windows phone allow application (using some codes) to turn off/on the screen.
Microsoft certification will not allow application to do so, even though if your able to do with some hacks. You cant turn off the screen from your application. This type of app cannot be made for Windows Phone, the API's do not exist, and if someone found a workaround it would be removed from the store. Unfortunately non of the developers have developed such app for windows. One app is available on Windows phone store One Touch Lockscreen, Find here

Is it possible to have a windows desktop app with metro interface (or a metro app with no intention of going to the windows store)?

Apologies for the noobish question, and I did try to search but couldn't find the right answer (or didn't search properly).
Currently have an app developed in a windows desktop environment because it gives us access to deeper features of the PC such as serial port comms etc. that the normal metro environment wouldn't allow. We're currently developing the UI based on metroUI so we can run it on an 8.1 touchscreen (metroUI looks good, gives us a touch-screen experience with PC features) but we have no intention of putting it on the marketplace.
Just wanted to confirm if this is in fact doable, and we can have this desktop application with a metro UI? Or is my noobishness meaning I'm overlooking some technical feasibility that makes it impossible?
This is doable with the Windows 8.1 Update (from April 2014). It's not supported before that since Windows Store apps were blocked from communicating with desktop processes.
The Windows 8.1 Update adds a feature "Brokered Windows Runtime Components" designed to allow side-loaded Windows Store apps to communicate with a desktop back-end. This will allow your Windows Store app UI to call the desktop component to access API that aren't available in the limited app package environment.
See Brokered Windows Runtime Components for side-loaded Windows Store apps for details.
See Try It Out: Sideload Windows Store Apps on TechNet for how to enable side-loading on your systems. See Windows 8.1 Update: Sideloading Enhancements for updates on how to enable a system for sideloading (no license required when on a domain, and significantly easier to get a sideloading license for non-domain joined systems).
The developer license system is designed for development and test purposes only. You really don't want to use it for production. Use the proper enterprise side-loading system instead.
From my understanding, the whole point here is to make it look like a Windows Store app. If you're app is a WPF one, you can already use Mahapps.metro.
You can create a Windows Store app without going to the store by Sideloading it. You create an app package first. The user has to right click the .ps1 file in that package to see the option Run with PowerShell and install it in a very old fashioned DOS like manor. It will only run when the user has a Microsoft Developer License and renew it every month. However, it is not allowed to keep using a Developer License of the end user to run a Store app. In the end, the system has to be domain bound to be allowed to run these apps, or you have to buy a Enterprise Sideloading key. These come in packages of 100 for $ 3000,- or you can unlock all PC's for 1 client for $ 100-.
It would be nicer if the specific pros of a Store program were available in a desktop environment but with W10 coming up I do expect a bit more integration and less restrictions.
Hope this answers your question.

A Data Caching framework for Windows Phone?

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

Detect incoming call iphone 5

I have a question regarding the possibility of creating a winforms application in C#, which is able to detect incoming calls on an iphone.
Here is the scenario:
the iphone is connected to the computer via a usb cable.
whenever the phone rings I would like to be able to do the following:
Retrive the phone number.
Use the phone number in the winforms application, to search xml filer.
Answer the phone via the application and play an automated voice message.
Is this even possible in C#? If so how could this be done and are there any libraries designed for interacting with an iphone using C#??
Thanks and regards.
Anders
There are no SDK's that allow you to develop .NET apps that interact externally with the iPhone.
If you want to write an iPhone app, but are intimidated by the learning curve you could check out MonoTouch. It allows you to write iPhone\Android apps using C#.

Get Window Phone Signal C#

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

Categories