How to Determine App Capabilities in Windows Phone 8 - windows-phone-8

According to http://msdn.microsoft.com/en-us/library/windowsphone/develop/gg180730(v=vs.105).aspx#BKMK_wp8apps The Windows Phone SDK 8.0 does not contain tools to detect the capabilities required for apps that target Windows Phone 8. When you submit an app that targets Windows Phone 8 to the Store, capabilities are not analyzed and the app manifest file is not regenerated or corrected. In my application I am using CameraCaptureTask and ShareMediaTask to first capture a picture and then share. By default in my WMAppManifest file I had ID_CAP_MEDIALIB_PHOTO, ID_CAP_NETWORKING, and ID_CAP_SENSORS. I do in fact use the MediaLibrary t gather a photo path for the ShareMediaTask, so I have left that capability in WMAppManifest. Do I need the other two as well if the actual image capture and sharing occurs not within my application but within the CameraCaptureTask and ShareMediaTask?

The ShareMediaTask does not have any capability requirements.
The CameraCaptureTask only requires that you specify the camera hardware capability.
For reference, the rules are defined in :
"C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\Marketplace\Rules.xml"

Related

Launch a Windows Phone app with android AAR (NFC)

I have a device with a hard-coded NFC tag that opens an Android app based on an Android Application Record (AAR). Basically it calls an Android app to open with type android.com:pkg and payload com.something.Something.
I have researched on how to launch my Windows Phone app with that existing tag, but in the end I have only found that Windows Phone can launch an app if the NFC tag is adequately programmed to open the Windows Phone app ID or the custom protocol registered in my app. But it is very important that I use the existing NFC tag which opens the Android app ID.
What is curious is that my Windows 10 Mobile detects this existing NFC tag to want to open the app when I touch it with my phone and prompts me if I want to launch an app? But the app with that ID isn't installed so I did a research on how to put this app ID on my Windows Phone app but in the end I only got deployment errors.
Android Application Records (AAR) cannot be used to launch Windows apps. Windows uses a different system to launch apps (Launch Record). The main probem is that Windows uses a different scheme to identify apps (not a Java package name as Android does). Moreover, Windows apps cannot be set to be automatically launched based on the data contained in an AAR, hence, it's not possible to build some custom filter that starts your Windows app based on that AAR.
The workaround that's currently known seems to be what's discussed in Cross platform launch records with extra data on Windows Phone and Android. Though this requires modification of the data structures on the tag side.

OneDrive not available in FilePicker

I am playing alittle with windows phone 8.1 app creating. Using C# and phone emulator in VS2013. I have read on microsoft's page that i should be able to see OneDrive in standard file picker (msdn.microsoft.com/en-US/en-en/library/windows/apps/dn263258.aspx):
Use the built-in Windows features.
Whenever possible, use the Windows features and UI to host or interact
with OneDrive. For instance, use the file picker provided by the
Windows.Storage.Pickers namespace for opening and saving files. As
another example, have your app use the Windows application data APIs
to save smaller pieces of data across a user's devices.
I am using standard code from tutorial like:
openPicker.FileTypeFilter.Add("*");
StorageFile file = await openPicker.PickSingleFileAsync();
and it works but there is no OneDrive to choose. I have internet connection on emulated device and i am logged in to OneDrive.
Have you integrated your file picker with the OneDrive contract?: http://msdn.microsoft.com/en-us/library/windows/apps/hh465192.aspx
You can also use the Live SDK single sign-on feature for Windows Phone here: http://msdn.microsoft.com/en-us/library/dn631823.aspx This way, your app should work for your testing purposes because you are already signed in.
I hope this helps!

Manifests for Windows 8 Phone app

I am examining Microsoft sample app "DirectX 3D shooting game sample". And I can see two manifests: Package.appxmanifest and StoreManifest.xml in the project.
After that I created a new WP8 project from template named "DirectX App (Windows Phone 8.0)".
The latter one contains WMAppManifest.xml.
All these manifests describe different things. E.g. Package.appxmanifest describes supported device orientations, meanwhile WMAppManifest.xml does not contain such an info.
My question is: what manifest is really needed to make an app for Windows Phone Store? And how do I specify supported device orientations for WMAppManifest.xml (because my game project is based on "DirectX App (Windows Phone 8.0)" template).
They are for different things. You can see what's in the application manifest (package.appxmanifest); there's even a designer for it in Visual Studio.
For the Store manifest, see http://msdn.microsoft.com/en-us/library/windows/apps/jj730526.aspx

Windows phone profile control programmatically

I am new to windows phone and developing an app to change general to silent mode while reaching a place.
How can i access windows phone profile settings silent/vibrate? is there any way to change profile using GPS while reaching on a specific location?
Or is there any way to create a new profile settings and using these settings instead of built-in one?
It is not possible to access the silent, vibrate and volume settings in the current Windows Phone SDK.
Similair question: How to access silent/vibrate mode for windows phone using C#?

Getting captured video from Windows Phone 8

While Microsoft appears to have a robust video capture API for Windows Phone 8, it appears that any videos captured must be stored in the application's local storage, which is not accessible from the File Explorer when the WinPhone 8 device is connected to a Windows 8 PC.
Also, the app cannot store the videos anywhere the user could easily copy them from the phone. It is limited to its own isolated file system. This stackOverflow posting explains how the Win8 phone is locked down:
Windows Phone 8: Media file access
So, I can capture and store a video, but how do I get it off the phone to somewhere a user can manipulate it?
If you want those captured video off your phone then you can email/share it using ShareMediaTask & then can get that video out off the phone.
May be its not worth your requirement but if the purpose is to get it out off phone then it will help.