Windows 8.1 multiple instances of Windows Store app - manifest

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.

Related

How to change ID in "application.xml" to run multiple instance of an AIR application?

I wants to run more than one instance of my Adobe Air Application, So to do this it needs to be change the ID in "application.xml" file of the application which is present in the folder META-INF of installation directory.
But i don't know how to change this ID at run-time.
Does anyone have an idea how to do this or any other process is there to solve this problem ?
You can't change ID at run-time. The only way to run several instances is to prepare several packages with different appID in app descriptor xml - so to have several app descriptors.

How to change app name in windows phone 8.1?

I am published one app in store in windows phone.now I want to change my published app name.how to change app name,please help me.how to change app name.
my app name is xyz.in
Actually My package name is xyz.in.xyz.in
my package display name is xyz.in
now i am changed package display name is abc.in.
but what happend is whenever I am creating package,after successfully created package the abc.in is changed again xyz.in.what should I do.
In your Package.appxmanifest file under the Packaging tab, change the field Package display name.
You can also have a localized app name by specifying ms-resource:AppDisplayName as the package display name, but then your .resw files need to have a string with the key AppDisplayName and of course you need to reserve the localized app names in your development dashboard on dev.windows.com.
You need to reserve a new name for your app in windows store. Check this link Changing your published app display name. It shows step by step.
Step One:
Reserve your app name in the Windows Store (like #Rohit said). Instructions here.
Step Two:
In Visual Studio (2015) go to Solution Explorer, select your solution, expand Properties, open WMAppManifest.xml, select the Application UI tab, enter the new name in the Display Name field.
Instructions here.

SAP HANA: not able to call xsjs file in HTML

I had an SAP UI5 application project in which one of the pages is product.html and a xsjs file getProductCat.xsjs.
Now I made some changes in HTMl page from notepad. When I try to open in HANA's web browser the changes are there but it is not able to connect to xsjs file. However, if I try to open through browser it connects to xsjs but the changes are not there, it seems it's opening the old file.
As I am new to SAP UI5 so I think I am missing some basic step.
Go to HANA client installation folder, run the following command line to get the help for HANA content activation:
C:\Program Files\sap\hdbclient>regi help activate
Action:
activate
What:
inactiveObjects (all inactive objects in the current workspace)
package (all objects in a package)
packages (all objects in a package and its sub-packages)
trackedPackages (all objects in all tracked packages and their sub-packages)
object (specific objects)
Call "regi help activate <WHAT>" for more information.
after you changed the xsjs file, did you activate it? You need to setup your workspace for the xs app. Did you?
Actually, this is not sapui5 question. This is a HANA XS application related question.
-D

Are the ExtendedTask elements in WMAppManifest.xml still required for 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.

Adding an external jar library to Intellij IDEA

I'm having a silly problem : I'm trying to add the Jsoup library (which is just an external jar) to my android application developed in Intellij Idea and it seems and don't do it right .
I put the library in the libs folder , then I went in Project Structure -> modules and selected dependencies , select add global library , select attach source and click ok.
When I write code it is able to automatically import classes and to compile , but when running I get " java.lang.NoClassDefFoundError: org.jsoup.Jsoup"
Copy the .jar file into your lib/ directory.
Right click the new .jar in the lefthand file browser in IntelliJ / Android Studio
Choose "Add as Library..."
Voila!
-Open the External Libraries node on the Left hand panel.
-Select Open Library Settings
-Project structure dialogue opens up.
Select the Libraries.
Click the "+" to browse the file.
![add external jar1
In IntelliJ IDEA 15 you can also access the Project Structure menu item from "File" item in the menu bar. Select Libraries from the list on the left. Click the "+" to browse the file, select it and you're done. It will be added to the "External Libraries" directory in your project.
Have a look at the newer artifacts section. Perhaps you don't add the JAR into your deployment properly.
UPDATE:
I'd like to update my answer based on lessons learned over the past six years since I first answered this question.
The best way to manage 3rd party JAR dependencies in Java projects is to learn Maven (my preference) or Gradle. IntelliJ has terrific integration with both.
If you combine those with an enterprise repository like Nexus you'll have no problems. Your dependencies and versions will be completely specified. Conflicts will be identified for you. Updates will be relatively simple.