A Data Caching framework for Windows Phone? - c#

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

Related

C# Xaml Winrt/Universal App determine if mobile device

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.)

Windows "Runtime" app (PC vs Phone) - Is it the same notification API?

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

Waking the computer in Windows Store apps

How can we wake the computer from standby, sleep and/or hibernate in a Windows 8 metro-style application?
I have tried using the code I had for my old Winforms and WPF apps and even read and tried many tutorials online but nothing works. Also when searching for this there appears to be no results pointing to any kind of documentation.
Windows RT does not expose such low level API if i am correct. Windows Store apps are for simple easy to use - mainly consumption apps.
You can however couple your windows store app with a ful windows app (desktop / traditional app) that your windows store app communicates with (WCF etc). The traditional app can do all it did before.
the only downside is that you cannot install your traditional app on Windows RT

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

Will Windows Mobile 5 SDK work for Windows 7.5 mango OS phone

I want to develop an application for Windows 7.5 mango OS phone like HTC Mozart, I am already having Visual Studio 2008, will the apps built by Windows Mobile 5 smartphone SDK be supported in a windows phone?
No, the Windows Phone SDK is the only one that is supported. In short, Windows Mobile != Windows Phone.
Also the UI is drastically different and the underlying runtime and .NET framework is also different. You might be able to port the logic of your code across easily to the new SDK, but the UI will need rewriting.
There are also a lot of freedoms lost in the new iteration as "the user is king". This means you need to review what your current app requires and provides to see if it is even a good fit for the new range of phones.
No, Windows mobile SDK wont work for Windows phone 7 applications.
See, the .NET Framework for windows phone 7 has changed completely . Infact the classes and APIs have changed .you can carry forward your previous experience of Windows Phone development into this new one but that certainly might not be the same code and services working in the same platform

Categories