Is there any way to handle file activation in Windows Phone 8.1 Silverlight Apps? I want users to choose my aplication when certain type file is selected. I can, at least, add file type association to manifest file using the manifest xml code because it is not available at the manifest designer.
<Extension Category="windows.fileTypeAssociation">
<FileTypeAssociation Name="alsdk">
<DisplayName>SDK Sample File Type</DisplayName>
<Logo>images\logo.png</Logo>
<InfoTip>SDK Sample tip </InfoTip>
<EditFlags OpenIsSafe="true"/>
<SupportedFileTypes>
<FileType ContentType="image/jpeg">.alsdk</FileType>
</SupportedFileTypes>
</FileTypeAssociation>
</Extension>
On the other hand, OnFileActivated method is not recognized.
protected override void OnFileActivated(FileActivatedEventArgs args)
{
// TODO: Handle file activation
// The number of files received is args.Files.Size
// The first file is args.Files[0].Name
}
According to msdn this mechanism works both Windows Store apps and Windows Phone Store apps. I wonder if it is possible in Windows Phone 8.1 Silverlight Apps.