Will current Windows Phone 8.1 apps run on Windows 10 Mobile devices whitout any code modifications? - windows-phone-8

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)

I'd think this is by design. In Data for Windows Phone 8, we can find PlatformData is one of Special-use folders in the local folder:
This folder is created when your app uses the photo chooser task. For more info, see How to use the photo chooser task for Windows Phone 8.
And in How to use the photo chooser task for Windows Phone 8, it declared that
If an app that targets Windows Phone OS 7.1 is deployed to a phone running Windows Phone 8 and that app uses the photo chooser task, the system will create a directory in the top level of the app’s isolated storage called "PlatformData".
What happens in your scenario is similar, the system automatically creates "PlatformData" folder when your Windows Phone 8 app is deployed to Windows 10 Mobile.
As this is controlled by system, I'm afraid there is no workaround for this. If your app is a Windows Phone Silverlight 8.1 app, I'd suggest using a file picker instead of photo chooser task. Or you can port your app to Windows 10 like Move from Windows Phone Silverlight to UWP.

Related

Install xap file into Lumia 625 using the SD Card

I am built a Windows Phone application with PhoneGap Build and I am trying to install it into a Nokia Lumia 625 with Software: Windows Phone 8.1.
I have installed the application on a Nokia Lumia 735 with Software: Windows 10 Mobile with no problems, for the Lumia 625 things seems much more complicated :(
To install the App on the Lumia 625, those should be the steps:
1 - Download the application with extension .xap
2 - Copy the file into the phone SD card
3 - Go to the Windows Phone Store
4 - Click the 3 dots on the bottom-right corner
5 - Click on 'Install local apps'
At that point my application should be listed there and I should be able to install it.
My current problem is that after step 4, the option 'Install local apps' is not visible...I have download WhatsApp.xap from internet and when it is added to the SD Card that option shows up and I am able to install the application.
The above tells me that there is something wrong with my application but I don't understand what. Below there is a screenshot of what I have loaded into the SD Card: http://prntscr.com/h7a7d8
The current state is:
- if both App are in the SD Card, 'Install local apps' is shown but only WhatsApp is listed
- if I remove WhatsApp from the SD Card, 'Install local apps' is not shown
Can anyone help me to understand what could be wrong in my App to not being able to install it into Lumia 625 but working fine on the Lumia 735?
Please let me know if you guys need any further information as the config.xml or anything else and I'll be able to provide it
Thanks
I have at the end managed to solve this problem myself, I have opted for a different way to install the app.
By installing Windows 10 SDK, I had at my service a tool called 'Windows Phone Application Deployment 8.1' and to get it to work I just need to connect the Phone through USB cable, select the APPX file I want to upload install to the phone and 'DEPLOY' :)
Here is a screenshot: http://prntscr.com/h7qdxj
Thanks guys anyway :)

Can I generate an appx with a windows phone project?

My question is based on this:
I have a xamarin forms project, (which has 3 projects: iOS, Android and Windows phone). Using the build options Release ARM we have successfully generated an .xap file to upload it to the windows phone store.
My question is: Using the same project can we generate a appx file to upload it to the windows store or do we have to create a Windows Store app?
As far as I know this is not possible since I have "Create App packages" disabled:
Thanks in advance.
When you have completed 'Store - Create App Package..' (answer: 'No' when it asks about Store deployment), APPX file appears in Debug/Release (NOT Package output) folder. If menu disabled - try to reload project/solution or restart VS.

CSLoader not working with Windows phone 8

I am working in Cocos2d-x v3.3 and Cocostudio v2.0.6.
I followed the instructions to create and load files CSB. I built in Android and Windows Phone 8. But it works in Android and crash in Windows Phone 8.
I checked and found this line fails:
auto node = CSLoader::getInstance()->createNode("MainScene.csb");
In Project Explorer folder, navigate to you c# project, then Assert folder. Make sure that:
csb file is added, and with path you pass to function.
goto csb file properties (right click->properties) and select "content" for Build Action.

Deployment error in Windows Phone 8.1 app with capability Shared User Certificates in manifest

If i check the capability "Shared Used Certificates" in the Windows Phone 8.1 application manifest i get the following error:
Error : DEP0001 : Unexpected Error: Package could not be registered.
(Exception from HRESULT: 0x80073CF6)
Manifest
<Capability Name="sharedUserCertificates" />
I am trying to deploy to a Nokia Lumia Icon with Windows Phone 8.1 developer preview.
Any idea what i am doing wrong or what prereq is not met?
I was able to deploy my app to the emulator, but not to a real device. I got the same error. I asked my contacts at the Phone Team and they said this is a bug and will be fixed with the post RTM updates. It should definitely be possible to sideload apps using the 'sharedUserCertificates' to real devices for normal app developers.
Getting such an app deployed through the Store may be restricted, though. This scenario is primarily meant for enterprise apps, deployed within enterprises.
I wrote a blog post about this.
If I set my phone to install apps to the phone it works just fine. If I switch it back then I get the error.
It has something to do with SD cards!! Not the SD cards per-se , but the mech The only thing different was I installed a new SD card this weekend to my Lumia 1520 with Developer Unlock. I am running VS 2013 Update 4 and have a StandAlone Phone application using a Windows 8.1 shared app class. It was working before and now its not. same error as MAGNUS
With save apps to SD CARD setting in storage sense set
If you use verbose build output it eventually says:
2>Follow the phone setting 2>Phone setting says apps to be installed
to SD card 2>layout root folder:
D:\WPSystem\SharedData\PhoneTools\AppxLayouts
With save apps to PHONE card setting in storage sense
If you use verbose build output it eventually says:
2>Follow the phone setting 2>Phone setting says apps to be installed
to internal storage 2>layout root folder:
C:\Data\SharedData\PhoneTools\AppxLayouts
search your Detailed or "verbose" build output for the term "Phone setting says"
That will get you close. Good luck.
I can confirm that VS 2013 Update 4 causes the error:
Error : DEP0001 : Unexpected Error: Package could not be registered.
(Exception from HRESULT: 0x80073CF6)
My application was deploying to the phone fine before the update, and started failing immediately after the update. Modifying settings:
Settings/Storage Sense/Store New apps on my: phone
Solved the problem. Thanks Matt for the tip, saved me alot of time.
Try to uninstall current application in your phone, and run agian.
For me its solved
This problem can be related to re-use of the same app template on Windows Phone (does not affect Windows desktop apps). In the Windows Phone section of the solution explorer, find your app manifest file (Package.appxmanifest), and review the following line near the top of the file (#'s in this example are representative, not actual):
<mp:PhoneIdentity PhoneProductId="12345678-1234-1234-1234-123456789ABC" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
If you have re-used the same app template, then the PhoneProductId number must be different from one iteration to the next. I suggest simply iterating the last digit in the string (e.g., change 1 to 2, or 2 to 3, etc....). Once you make certain all your Windows Phone apps have individualized values in this field, you should be able to deploy them all independently.
It could also be a missing image in the Package.appxmanifest. Check the visual assets tab in this file (VisualElements in XML) to see if there is some logo missing.
I changed package name in Package.appxmanifest file. So I had to Uninstall app and Re Installation helped me.

Add xap file in sd card on windows phone

I created a sample app in windows phone 8,now i want to add my xap file into windows phone device,for that i copied xap file into sd card,but in windows device,there is no file exists in sdcard in store tile,
Any suggestions?
you cannot install a xap file into phone like this.
there are two ways to install an app one is by downloading it from app store and other one is by installing app from visual studio on a developer unlocked device.