What's the difference between Properties/DisplayName element and VisualElements#DisplayName attribute in .appxmanifest file - windows-store-apps

In following appxmanifest, what is the difference between
Package/Properties/DisplayName element
and
Package/Applications/Application/VisualElements#DisplayName
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
<Identity Name=""
Version=""
Publisher="" />
<Properties>
<DisplayName></DisplayName> <!-- this -->
<PublisherDisplayName></PublisherDisplayName>
<Logo></Logo>
</Properties>
<Prerequisites>
<OSMinVersion></OSMinVersion>
<OSMaxVersionTested></OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="" />
</Resources>
<Applications>
<Application Id="" StartPage="">
<!-- and this -->
<VisualElements DisplayName=""
Description=""
Logo="" SmallLogo=""
ForegroundText="" BackgroundColor="">
<SplashScreen Image="" />
</VisualElements>
</Application>
</Applications>
</Package>
https://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx

Package/Properties/DisplayName
The DisplayName is the name of your app that you reserve in the store, for apps which are uploaded to the store.
This is the actual reserved name in the developer portal (= store). When you package your app for upload to the store, this will be automatically set when going through the wizard in Visual Studio.
The root element Visual Elements is how the Windows Store app is visualized on the user's pc/phone.
Package/Applications/Application/VisualElements
Describes the visual aspects of the Windows Store app: its default tile, logo images, text and background colors, initial screen orientation, splash screen, and lock screen tile appearance.
So the DisplayName property under the Visual Elements element is how the app's name is shown on the user's pc. This can be different from the name in the store (e.g. localized).
A friendly name for the app that can be displayed to users. This string is localizable; see Remarks for details.
There are two explicitly reserved words that may not be used as the DisplayName for apps uploaded to the Windows Store: "NoUIEntryPoints" and "NoUIEntryPoints-DesignMode". These identifiers are reserved for use by development tools and test suites.
Source: https://msdn.microsoft.com/en-us/library/windows/apps/br211471.aspx

I have an app in the Store that may explain this issue.
Package/Properties/Display Name element refers to the app name in the Store which is the same as what's in Dashboard. While if you change the Display Name distribute in Visual Elements, your app will be different from itself in the Store after user installs it from the Store.

Related

How to Escape HTML URL via XML

So we just got a new phone system in the office. I am trying to figure out if there is a possibility to store contact photos of the various people in the company contact list outside of the individual phone storage. Currently we have to upload a photo for each person for each phone (since it is stored internally). We are able to import/upload a XML file to the phone. Below is where I am currently:
<?xml version="1.0" encoding="utf-8"?>
<contactData version="1.0">
<phonebook>
<contact sDisplayName="Test" sOfficeNumber="1111" sMobilNumber="2023929323" sOtherNumber="" Account_Id="8" Ring_Id="0" sGroupName="" photoCustom='..\i.imgur.com\ul8Hmru.jpg' photoSelect="0"/>
</phonebook>
<blacklist/>
<groupinfo/>
</contactData>
The images uploaded show as http://192.168.x.x/head_icon/imagename.jpg, when uploading the above xml, I got out of the head_icon folder and get it to show http://192.168.x.x/i.imgur.com/ul8Hmru.jpg. Is there a way to further escape the local IP so it goes and makes an attempt to fetch the image (allowing us to do a mass import of contacts storing the photos online somewhere)?
The value of the attribute photoCustom is using a relative URL, you need to specify an absolute URL (full path, starting http://)
<?xml version="1.0" encoding="utf-8"?>
<contactData version="1.0">
<phonebook>
<contact sDisplayName="Test"
sOfficeNumber="1111"
sMobilNumber="2023929323"
sOtherNumber=""
Account_Id="8"
Ring_Id="0"
sGroupName=""
photoCustom='http://192.168.x.x/i.imgur.com/ul8Hmru.jpg'
photoSelect="0"/>
</phonebook>
<blacklist/>
<groupinfo/>
</contactData>

Access Asset Catalog images in TVML

I there any way to access images in contained within a local Asset Catalog from within TVML on the AppleTV?
I notice several of the templates in this example from Apple call out to resource:// URLs, which are common use images (more info on the dev forms). Here's an example button that gets rendered with the cloud symbol:
<buttonLockup>
<badge src="resource://button-cloud" class="whiteBadge" />
<title>Title 3</title>
</buttonLockup>
I tried pointing to some of my own resources instead of button-cloud but didn't have any success.
I have been able to change the icon on these buttons by linking to an externally served image like so:
<buttonLockup>
<badge src="http://localhost:5000/static/heartFull.png" class="whiteBadge" width="50" height="50"/>
<title>Title 3</title>
</buttonLockup>
Since these buttons will be re-used throughout my app, I'd rather load them locally than repeatedly calling them over HTTP if possible.
I had some success linking directly to the filesystem
<badge src=\"file:///<url to bundle>/<relative path to resource>/<icon>.png\" width=\"50\" height=\"50\" />
with... url to bundle from NSBundle.mainBundle().bundleURL.absoluteString, relative path according to your setup, eg. resources, images, ... and icon well, your image to show on the badge.
Pulling from Assets.xcassets hasn't worked out so far, but then I am still in training. :-D
I think the icons namespaced with resource are provided by the OS itself and can't be modified. This is only a hunch and I haven't verified it.
https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/ResourceValues.html
Thanks #Baa, really helped me out! Just wanted to add that in order to reference the path to the bundle on the JS side, I needed to add the following Swift code to my AppDelegate.swift file within the appController(_ appController: TVApplicationController, evaluateAppJavaScriptIn jsContext: JSContext) function (may need to be manually added, if you don't see it):
jsContext.setObject(Bundle.main.bundleURL.absoluteString, forKeyedSubscript: "BUNDLE_URL" as NSCopying & NSObjectProtocol)
Then on the JS side, I could load static images from the bundle with the following:
const imageFromBundle = `${BUNDLE_URL}myImageName.png`;
Note, as far as I could see, the file:/// prefix was unnecessary and loading bundled images worked fine for me without it.

Set default navigation page to xaml in a library in WP8

My default page is in a library. How do I point this field to it?
Edit the XML code of your WMAppManifest.xml and replace the property NavigationPage of the following line:
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
to:
{assemblyName};component/{pathToResource}
where the assemblyName is the name of the assembly of the page you want to navigate to, and pathToResource is the path (inside that project) to the page you want to navigate to.

Bilingual application name on blackberry with webworks

I'm packaging an HTML5/Javascript application with WebWorks for BlackBerry.
In the config.xml file, we can set the icon and the name to be display on the phone.
The elements to use for that purpose are:
<name>App Name</name>
<icon src="images/icon.png"/>
My problem is that my app is bilingual and I have a different name in english and in French
(ex: "Billing" in english and "Facturation" in french).
I want "Billing" to appear below the icon when the phone language is set to english and "Facturation" when the phone language is set to french.
Is there a way to do that.
Thanks
The name can also be localized:
<name>Localization Example</name>
<name xml:lang="ca">Exemple de localisation</name>
<name xml:lang="fr_FR">Exemple de localisation</name>
<name xml:lang="de_DE">Localization Probe</name>
Source: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/Localization

How to display a detailed map and highlevel map in different classes/tabs?

I have two activities, ListViewActivity and MapViewActivity which both run within a TabHost; everything is working fine and I am able to view my list, add POIs to the map, change between tabs etc.
What I have also done is to 'extend' my ListViewActivity so that when an item in the List is clicked, the view is switched (via ViewSwitcher) to show more detail (note: this happens within the same tab); again this all works okay and I am able to flip between the list view and the detailed view which contains text elements, buttons etc.
But, since I've only been programming in Android/JAVA for a few weeks, I've hit a brick wall... and need some pointers/high level examples to get me going again.
<com.google.android.maps.MapView
android:id="#+id/mapView"
android:layout_width="150dp"
android:layout_height="150dp"
android:apiKey="0sQLOXF5j7iM03sd-IyVldoGjh0voa5-qqFRRlw"
android:clickable="false"
android:enabled="true" />
Specifically, I want the 'extended/detailed' view within the ListViewActivity to include a detailed/zoomed map. However, when I try to include the map definition in my XML code (see above), it causes the application to crash - I am assuming because there is already a map defined in MapViewActivity (i.e. this code appears in both my ListViewActivity.xml and my MapViewActivity.xml files)?
I've read found other pages such as this, which recommend using the android:process attribute in the manifest to assign acitivites, for example:
activity android:name=".activity.directory.MapView1" android:process=":MapView1"
activity android:name=".activity.directory.MapView2" android:process=":MapView2"
However, I am uncertain how to implement this - i.e. how do I call the process from either the ListViewActivity or MapViewActivity class such that either a detailed or high-level map is displayed?
Currrently my AndroidManifest.XML file is as shown below; I know this is incorrect, but like I said, I'm stuck in figuring out how to have a map both in my ListViewActivity and in my MapViewActivity:
<application
android:icon="#drawable/launcher"
android:label="#string/app_name" >
<activity
android:label="#string/app_name"
android:name=".DummyAppName" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ListViewActivity"/>
<activity android:name=".MapViewActivity"/>
<activity android:name=".FavouritesActivity"/>
<activity android:name=".SettingsActivity"/>
<activity android:name=".activity.directory.MapView1" android:process=":MapView1"/>
<activity android:name=".activity.directory.MapView2" android:process=":MapView2"/>
Sorry for the long post. I hope it makes sense and I hope someone is able to offer some ideas/suggestions on how to fix my problem (is it even possible?).
Thank you!