Windows phone 8.1 tiles issues - windows-phone-8

I am currently working on an application that was developed using windows phone 8.0 sdk and and i targeted it to work with Wp8.1 SDK. Everything is working fine, apart from the issue with tiles. For some reason, it is taking the WMAAppmanifest settings into consideration instead of the Package.appxmanifest file.
here's my Application tag in the Package.appxmanifest file,
<Applications>
<Application Id="xxxxxxxxxxxxxxxxxx" Executable="AGHost.exe" EntryPoint="/Views/SplashScreen.xaml">
<m3:VisualElements DisplayName="SampleUI" Square150x150Logo="Assets\SquareTile150x150.png" Square44x44Logo="Assets\Logo.png" Description="SyncUI" ForegroundText="light" BackgroundColor="#464646">
<m3:DefaultTile Square71x71Logo="Assets\SquareTile71x71.png">
</m3:DefaultTile>
<m3:SplashScreen Image="Assets\Splashscreen.png" />
</m3:VisualElements>
<Extensions>
<Extension Category="windows.backgroundTasks" EntryPoint="ScheduleSync.TimerTriggerTask">
<BackgroundTasks>
<Task Type="systemEvent" />
<Task Type="timer" />
</BackgroundTasks>
</Extension>
</Extensions>
</Application>
</Applications>
The tile doesn't seem to change irrespective of what i change the image to be.
Am i looking at the right place? Is there some other place where i need to change the tiles ?

I had to change the tile in the WMAppmanifest instead of the Packageappxmanifest.
Here's the sample,
<Tokens>
<PrimaryToken TokenID="Token1" TaskName="_default">
<TemplateType5>
<BackgroundImageURI IsRelative="true" IsResource="false">Images\Cloud_WP8_71x71.png</BackgroundImageURI>
<Count>0</Count>
<Title>Sample Cloud</Title>
</TemplateType5>
</PrimaryToken>
</Tokens>

Double Click on the Package.appxmanifest in the Solution Explorer of your project. It will load up a GUI for updating the App manifest rather than using the xml versions.
In the GUI representation there will be a 'Visual Assets' Tab at the top which will let you set each of the different tiles.
Here is a link to a video of how to use the Package.appmanifest file. It also talks about hwo to set the tiles of the app. http://channel9.msdn.com/Series/Windows-Phone-8-1-Development-for-Absolute-Beginners/Part-8-Working-with-the-package-appxmanifest

Related

AdControl not exist in namespace "using: Microsoft.Advertising.WinRT.UI"

I'm trying to insert ad in a Windows Phone 8 app using Visual Studio 2013 Ultimate.
I inserted this code in MainPage.xaml :
xmlns:UI="using:Microsoft.Advertising.WinRT.UI"
And my Grid tag:
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<UI:AdControl
ApplicationId="----------------------"
AdUnitId="------"
HorizontalAlignment="Left"
Height="500"
Margin="0,0,0,0"
VerticalAlignment="Top"
Width="200"/>
</Grid>
Why do I get this error?
AdControl not exist in namespace "using: Microsoft.Advertising.WinRT.UI"
Errore2 type 'UI: AdControl' not found. Check for missing a reference to an assembly and all assembly to which you refer have been compiled
Right click on Reference in your Solution Explorer window and select Add Reference.
WINDOWS RT (UNIVERSAL APPS)
Then move on Windows Phone 8.1 Tab and select 'Extensions'. You should find Microsoft Advertising SDK for Windows Phone 8.1 XAML. Select it and click ok, then rebuild (F6)
WINDOWS PHONE SILVERLIGHT
Move on Assemblies tab, then click on Extensions and add these 2 references:
Microsoft.Advertising.Mobile
Microsoft.Advertising.Mobile.UI
Then you have to add in the XAML page this namespace:
xmlns:adv="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
and finally add the advertising control to your page:
<adv:AdControl ApplicationId="YOUR_APPLICATION_ID" AdUnitId="YOUR_AD_UNIT_ID"
Width="480" Height="80"/>
If you're not able to find references, it's beacuse you didn't install the SDK on your computer. Go here, download the right version according to your needs and install it, then repeat the steps.
Let me know if it works!

Background image of a winrt universal application

I have two images, one for windows phone and second for windows project. and I want these images on every page of their respective platform.
What currently I am doing is setting background from app.cs in if windows phone and if windows app code snippets.
I want any xaml method if any for this.
Set the background of each page to a common resource and then set that resource to your image. By default the page's background will be set to
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
You can set the ApplicationPageBackgroundThemeBrush to an ImageBrush in your app.xaml's Resources, but since you want different images for Windows and for Windows Phone add another level of indirection. Create a ResourceDictionary of the same name in both projects and then merge that dictionary into Application.Resources.
In app.xaml:
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="PlatformDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Then set the actual brush in PlatformDictionary.xaml files in the Windows and Windows Phone projects. Generally you'll fall back to defaults in HighContrast modes, but if you have important information in the image you can provide a high contrast version of the image as PhonePageBackground.contrast-high.png using the contrast resource qualifiers:
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Name="Default">
<ImageBrush x:Key="ApplicationPageBackgroundThemeBrush" ImageSource="Assets/PhonePageBackground.png"/>
</ResourceDictionary>
<ResourceDictionary x:Name="HighContrast">
<SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{ThemeResource PhoneBackgroundColor}"/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
The Windows version will be the same except for your Windows page background image in the default theme and SystemColorWindowColor in the HighContrast theme.

Stop auto-detect phone numbers in Phonegap app for iOS (Bug)

I'm developing an iOS app with Phonegap Build and JQM.
Is an app to generate math problems and some times I'm using big numbers that iOS interprets like a "phone numbers" and automatically converts into links. According the PGB documentation if add <preference name="detect-data-types" value="false" /> into the config.xml this stop.
The preference added into the config.xml seems work good until I click a button, and the numbers are converted automatically into links, like if the preference was ignored.
The actions of the buttons are just for copy to clipboard and print, using this clipboard plugin and this printer plugin. This should don't affect the numbers (at least that is what I think).
I've tested in iOS 6, 7 and 8, in all do the same.
Any idea how to stop this? Thanks!
Try adding
<meta name="format-detection" content="telephone=no">
Or set a property in the UIWebView
self.webView.dataDetectorTypes = UIDataDetectorTypeNone;
and have a look on this & this

Multi Device Hybrid App for Windows Phone: How to set the logo?

I am trying to figure out, how to set the app logo as well as the splashscreen using the preview for cordova apps (or Multi-Device Hybrid Apps) in Visual Studio 2013. I tried adding
<platform name="wp8">
<icon src="img/logo.png" width="99" height="99" />
<!-- tile image -->
<icon src="img/logo.png" width="159" height="159" />
</platform>
However this won't do the trick. It's a pretty new thing so finding informations on this topic is kind of hard. It was pretty easy, using the old method. Any help is appreciated.
Multi-Device Hybrid apps use the Cordova CLI to build for each platform, which provides a fallback by default, so you don't actually need to add a reference in your HTML files.
Instead, to set a logo (I assume you're talking about the icon that shows up in the app drawer), you need to add(or replace) the image in res/icons/wp8/ by following the resolution and naming guidelines mentioned in "Platform-specific Visual Assets" section of the docs.
Switch to wp8.1 emulator instead of wp8 emulator.

Windows Phone 8: How to set Image on the fly

Windows Phone 8 :
I have an HTML design to bind in webbrowser control.
In that HTML I need to set the image() dynamically from my windows 8 phone application itself (Eg:MyApp/Images/Done.png).
How to set this Image in my HTML dynamically?
Could any one help me on that?
In terms of Zen, WP8 tried to align Uris as close as possible to Win8 Uris. So whenever you ask yourself "How do WP8 Uris work?" a good starting point would be Win8 and WP7 behaved. For example, you'll see lots of "ms-appx:///" and "ms-appdata:///" all around WP8.
Specfically, In order to access an app's Image resources from a WebBrowser just specify the local file path.For example, start a new WP8 project and in MainPage.xaml add:
<phone:WebBrowser Source="myPage.html" />
And create myPage.html and add:
<html>
<body>
<img src="Assets/AlignmentGrid.png"/>
</body>
</html>
This would render the correct image as part of the WebBrowser. See attached .