Currently I have wp8 applications running on windows 10 mobile devices, but I am getting some unexpected results, specially with photo related tasks.
This is what is not working well:
//Initializations for photo chooser task
PhotoChooserTask photoChooserTask = new PhotoChooserTask();
photoChooserTask.Completed += new EventHandler<PhotoResult>(photoChooserTask_Completed);
...
//Starting the photo chooser
photoChooserTask.Show();
...
//Getting result from photo chooser
void photoChooserTask_Completed(object sender, PhotoResult e)
{
String photoPath = e.OriginalFileName;
}
This works well in an wp8 app installed on windows phone 8.1 device, getting always something like:
photoPath = "C:\Data\Users\Public\Pictures\Camera Roll\WP_20170504_002.jpg"
But has unexpected behavior in the same wp8 app installed on windows 10 device, sometimes getting something like:
photoPath = "C:\Data\Users\Public\Pictures\Camera Roll\WP_20170504_002.jpg"
But other times I get the following in the same device:
photoPath = "C:\Data\Users\DefApps\AppData\{82D0A9BD-6D54-4321-880B-445007A2A1B4}\local\PlatformData\PhotoChooser-b001485c-f41b-4676-b655-7aacee3d8267.jpg"
//This is not the real name of the saved photo, then is going to be a big problem if you want to save the name into a database an later use it to read the photo again.
I am testing this in the following devices: Nokia Lumia 520 (windows phone 8.1 operating system) Microsoft Lumia 550 (windows 10 mobile operating system)