Are the ExtendedTask elements in WMAppManifest.xml still required for Windows Phone 8? - windows-phone-8

I have created a background agent project and added it as a project reference in my main phone application project. I was expecting it to automatically update WMAppManifest.xml with something like the below:
<Tasks>
<DefaultTask Name="_default"
NavigationPage="MainPage.xaml" />
<ExtendedTask Name="MyBackgroundTask">
<BackgroundServiceAgent Specifier="ScheduledTaskAgent"
Name="FooManMark"
Source="BackgroundAgent"
Type="BackgroundAgent.ScheduledAgent" />
</ExtendedTask>
</Tasks>
The periodic task still seems to run in the background (at least in a debug build), so I am wondering if the extended task element is still used in Windows Phone 8?
I am using Visual Studio 2012 Update 4

That's a difference in Windows Phone 8 that this reference is not added to WMAppManifest when you add the project reference, but when you actually build the project. If build the project and unzip the created XAP file and check the content of the WMAppManifest, the ExtendedTask is there.
I've described this in more details here.

Related

Invalid package family name error on Windows PhoneGap app

I have done a windows app using phoneGap, But when I upload the APPX file in windows dev center, I got some errors like 'Invalid package family name'.
I worked through a similar problem today and I found this article helpful:
http://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html
Check your build configuration file (build.json) and make sure you select a release if your release settings are defined to match the Strong Name with the Windows Store expected Publisher Name.
If you are using Tools for Apache Cordova (TACO), you will also want to review your config.xml file both with the GUI and then with an raw XML editor like WordPad.
<preference name="WindowsStoreDisplayName" value="XXX" />
<preference name="WindowsStoreIdentityName" value="YYYXXX" />
<vs:platformSpecificValues>
<vs:platformSpecificWidget platformName="windows" id="_ZZZZZZZZ" />
</vs:platformSpecificValues>
Where you fill in the value the Windows Store expects in the XXX, YYY and ZZZ fields.
Hope that helps,
Adam
if you are using https://build.phonegap.com you need compile using cli-6.0.0

Image not coming up from .EAR deployed on WebSphere 8.5

In STS, I have created an enterprise project(exported as MyEar.EAR) containing .WAR( i.e. MyWar.war) module.
I deployed it into WebSphere 8.5.
After deployment overall structure of the build is as follows:
MyEar.ear\MyWar.war\public
MyEar.ear\MyWar.war\public\img
MyEar.ear\MyWar.war\public\img\logo.jpg
MyEar.ear\MyWar.war\MyJsp.jsp
Now, the issue is this that Image:"logo.jpg" is not appearing into "MyJsp.jsp" (below is the code).
<img src="./public/img/logo.jpg"></img>-----Please Consider MyEar.ear\MyWar.war as the .WAR context.
Shall be thankful for the help?
Check if you have ibm-web-ext.xml file in WEB-INF, and if you have there entry:
<enable-file-serving value="true"/>
Your image should be accessible by the following link:
http://localhost:9080/MyWar/public/img/logo.jpg

How to create a Windows Phone 8 app package?

I have developed one Windows Phone 8 app using VS12. I am currently testing it on emulator. I want to forward this project for further testing. So, my question is how to create a package of same.
Thank you.
the package is in your project, path like this: ProjectName\Bin\Debug(or Release)\yourAppName.xap, you can get the xap file in this path.
In case we talk about Windows Phone 8.1 (not 8.0) the way to go is different. Open your solution in Visual Studio, then click the project with your Windows Phone code.
Important: you must have the project as "blue-selected", i.e. focused. If your Solution Explorer widget lost the focus and the project is "gray-selected", nothing to appear in the menu as enabled item.
Then, having the project selected and focused, immediately go to main menu: Project -> Store -> Create App Packages

Getting calendar appointments working on WP7 but not WP8

When I run codes of this example in windows phone 7 project it's ok but when I test it in a windows phone 8 project it gets exception at this line:
appts.SearchAsync(start, end, 20, "Appointments Test #1");
I can't understand what's the reason???
You need to add related capablity to use appointments: copy and paste <Capability Name="ID_CAP_APPOINTMENTS" /> to <Capabilities> section in WMAppManifest.xml file

Windows 8.1 multiple instances of Windows Store app

one of the promises of Windows 8.1 is the possibility of multiple instance of Windows Store Apps.
But I'm not finding how to activate this.
I've found the element of the app manifest
http://msdn.microsoft.com/en-us/library/windows/apps/dn423281.aspx
But I don't know what to add in the ?? values:
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
<Extensions>
<Extension Category="windows.activatableClass.outOfProcessServer">
<OutOfProcessServer ServerName="??">
<Path>??</Path>
<Instancing>multipleInstances</Instancing>
<ActivatableClass ActivatableClassId="MyApp.App"/>
</OutOfProcessServer>
</Extension>
</Extensions>
</Package>
Could you help me to activate multiple instances of my application?
Thank you a lot!
Each app can have a single instance but multiple views - each view runs in its own thread. Here is an example on MSDN. I wrote an article about how I added multiple views to an app.
Right click on your project and select unload project.
Right click on your project and select edit .csproj
On the XML view find <ProjectGuid> tag.
Generate a new GUID and replace it.
Right click on your project reload it.
Go to Package.appxmanifest and change
Application tab Display name
Visual assets Short name
Packaging Package name
Then create the app package and then install it via powershell.
Each time you need to deploy a new instance of the same app, do above.