Use FileOpenPicker for windows phone 8 - c#

I believe, FileOpenPicker was added in Windows Phone SDK 8.1 which supports browsing through the music library, video library etc to let the user select a file. This functionality(API) was not available on windows phone 8 sdk. Problem is that windows phone sdk 8.1 can only be installed over visual studio 2013. I have installed VS2013 and SDK 8.1, When I build an app and try to deploy it on my windows phone running at 8.0 and not 8.1, it throws me an error saying it cannot be installed on this version of windows phone OS.
I wonder, whatsapp did not had any option to browse videos up till sdk 8.0 was released. with the release of sdk 8.1, it lets user to browse videos from the video library. I hope they are also making use of the API mentioned above. But this updated version of whatsapp which supports video library browsing, works on my Windows Phone with OS 8.0?
How were they able to use the API from 8.1 SDK and target the app for windows phone 8.0?
Is there any way I can created an app using SDK 8.1 and target the app to run on windows phone 8.0?

WhatsApp is one of the most popular apps on the Windows Phone platform. As a result, they are occasionally granted access to APIs and capabilities that are not yet available in the public SDK.

Related

Developing Window Store Apps in Visual Studio 2013 on Window 7 64-bit without emulator

This is going to be quite a long question but please bear with me till the end. Before going into the details, below are my PC environments:
Windows 7 Professional x64
Visual Studio Community 2013 Update 4
On top of that, I checked my PC's processor does support virtualization using IntelĀ® Processor Identification Utility.
I also installed all the required SKD 8.1 components required to develop Windows phone 8.1 apps as shown in the picture below.
Now I clearly understands from the visual studio website requirements:-
Windows Phone 8.0 development requires Windows 8.1 (x64) or higher
Windows Phone 8.1 development requires Windows 8.1 (x86) or higher
For the Windows Phone emulators, Windows 8.1 (x64) Professional
edition or higher, and a processor that supports Client Hyper-V and
Second Level Address Translation (SLAT)
But from this SO Q&A it seems like developing windows 8.1 phone apps is still possible. However when I try to open an existing windows phone 8.1 project I got the error as shown in the picture below:
On top of that, in my Add New Project window there are no Windows Store Apps templates showing up.
I later found out from this msdn documentation that the RequiredPlatformVersion Element of the Visual Studio project template is filtering out the templates. However I tried to change the Blank Windows Phone project template element's value to 8 as specified in the documentation and also a few others value smaller than 6.3.0 but still fail to show the template.
Then I tried to install an extension called Windows Phone Template Pack which then adds two window phone project templates in my Add New Project window as shown below.
I created an empty project using that template and surprisingly I am able to open the windows phone 8.1 project as shown in the picture below.
That got me thinking that it should be possible to develop windows phone 8.1 apps but not emulating it but I am out of ideas on how to work around it now. I even tried looking at the denv.exe.config file to try my luck but there's nothing of interest there either.
Is there anyone that successfully build a Windows Phone 8.1 apps in an similar PC environment? A workaround will be sufficient.
Sorry to say this but Windows 8.1 is a requirement for developing as usually emulators on being initialized tries to load the OS into the device like the basic theme etc options.
1) You can try to connect your Windows phone to your PC and select Deploy to Device. (Though it might work and you will be able to debug yet still you would face a problem when you try to create a release build package to be uploaded on windows store. Also even though the fixes might work for short period but with Windows 10 about to be released you would be stuck with waiting for a fix to develop apps for that.)
2) You can try installing windows 8.1 inside VMWARE and deploy it.

Windows Phone 8.1 XAML Ad Mediator

I'm trying to integrate AdMediator into an Windows Phone 8.1 XAML project. I installed the AdMediator extension and when i access the Ad Networks it only shows Microsoft Advertising, AdDulex,Smaato. Does this mean Admob does not work inside AdMediator, or it needs to be installed manually.
Admob only works on Windows Phone 8.1 Silverlight apps. At the moment, there's no SDK for XAML based apps. See this

Windows 8.1 Universal App References

I have a windows 8.1 universal app. One part is desktop/tablet app and one is Windows phone.
I have been downloading all external libraries via nugget into the Windows 8.1 and now my Windows Phone doesn't recognize it.
How can i reference it all under one "umbrella" or point the Windows Phone reference folder towards references in windows 8.1?
If I understand it correctly. you added some Nuget packages to the Windows project and you have code in your Shared project that uses them, so the app does not build for Windows Phone.
The solution is to add the same Nuget packages to your Windows Phone project.

nuget failed to add references into Windows phone 8.1 project in universal apps

I have a strange problem, I am migrating a Windows Phone 8 app to Windows Phone 8.1 universal app. In that I am using Facebook and Facebook.Client packages. In Windows Phone 8.1 universal app project nuget package manager failed to add Facebook packages into the project by saying the error like Couldn't find any packages that support Windows phone 8.1, after this error I added the Facebook and Facebook.Client references manually from my old Windows Phone 8 project, when I build the project compiler throwing error:
Error 1 Cannot find type System.Windows.Controls.Control in module System.Windows.dll
Actually I added Windows Phone 8 Facebook.Client.dll. So compiler throws this error. After this I have added Windows 8 Facebook.Client.dll, the build succeeded. But when I call facebook Loginasync() method, I am getting NotImplementedException.
Any one help me how to resolve this exception. I guess Facebook packages are not updated to support Windows Phone 8.1 universal app. If so can any one help me how to integrate the Facebook in Windows Phone 8.1 universal app (Windows 8.1 its working fine).
The Facebook package has been migrated to the Universal app stack, however the Facebook.Client package has not. The Facebook.Client version for Windows Phone 8 targets the Silverlight version of the APIs, so it won't auto-magically convert to supporting Windows Phone 8.1 Universal projects. Someone is going to need to port it.
The source can be found here:
https://github.com/facebook-csharp-sdk/facebook-winclient-sdk
For Windows Phone 8.1 there is a new step in the login process you need to do.
In OnActivated of app.xaml.cs add the following code:
if (args.Kind == ActivationKind.WebAuthenticationBrokerContinuation)
{
App.MobileService.LoginComplete(args as WebAuthenticationBrokerContinuationEventArgs);
}

Is it Possible to develop Windows Mobile Apps in Windows 7 and Visual Studio 2012

I am using Windows 7 Enterprise 64 bit OS. Planning to develop Windows Mobile Apps.
I have Visual Studio 2012.
Is it possible to develop Windows Mobile Apps with these Resources in hand.
It is not possible to develop apps for Windows Phone 8 on a Windows 7 machine, but you can develop apps for Windows Phone 7 on a Windows 7 machine. I have been told that this is due to the fact that the Windows Phone 8 SDK emulator requires specific software as well as hardware to function.
For more information see Getting started with Windows Phone Development and System requirements for Windows Phone Emulator
By Windows Mobile, you mean to say Windows Phone 7 or 8 right? The website of the Windows Phone dev center provides a lot of information on this. What you need:
Developer tools:
You can choose between the SDK 7.1 or 8.0, note that you need the 8.0 SDK to develop for Windows Phone 8. Using the 8.0 SDK you can also develop for Windows Phone 7.5.
Visual Studio:
If you already have Visual Studio 2012 Professional or higher, the SDK templates and tools are integrated into your existing installation of Visual Studio.
Windows:
Please not that the SDK 8.0 requires Windows 8 Pro 64-bit or higher, thus it's not possible to develop apps for WP8 on Windows 7, as stated here:
Windows Phone SDK 8.0 requires 64-bit Windows 8 Pro or higher. You can't develop Windows Phone 8 apps on Windows 7, on Windows Server 2008, or on Windows Server 2012. The Windows Phone 8 Emulator has special hardware, software, and configuration requirements. For more info, see System requirements for Windows Phone Emulator.
However, you can develop WP7.5 apps on your machine, using the 7.11 SDK.

Categories