windows-phone-8

“You need to install an app for this task” error with Windows Phone 8 App

情到浓时终转凉″ 提交于 2020-01-04 06:11:35
问题 My Windows Phone app gives me error "You need to install an app for this task do you want to search it on store?" on app but there's nothing shows up on debugging. if i click on yes it opens store and searching for something and founds nothing. how can I solve this? edit: it goes away when I disable IsEnabledScript. 回答1: Let me try to guess: you are using a WebControl . The page you initially navigate to probably tries to redirect to an URI that has a protocol extension (like facebook://) via

How to append a file, asynchronously in Windows Phone 8

耗尽温柔 提交于 2020-01-04 04:19:47
问题 I'm trying to append to a file in the latest Windows Phone. The problem is i'm trying to do everything asynchronously and i'm not sure how to do it. private async void writeResult(double lat, double lng) { StorageFolder localFolder = ApplicationData.Current.LocalFolder; StorageFile storageFile = await localFolder.CreateFileAsync("result.txt", CreationCollisionOption.OpenIfExists); Stream writeStream = await storageFile.OpenStreamForWriteAsync(); using (StreamWriter writer = new StreamWriter

Windows Phone 8 Application crash once its launched AgHost.exe' has exited with code -532265403

时光怂恿深爱的人放手 提交于 2020-01-04 03:49:58
问题 My application crashes once its opened with no exception It was working fine but suddenly I got this problem. On the output console im getting the below: 'AgHost.exe' (CoreCLR: DefaultDomain): Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'AgHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.RuntimeHost.ni.dll'. Skipped loading symbols. Module is optimized and

AppManifest Validation failed. Invalid AppPlatformVersion in WMAppmanifest.xml

梦想的初衷 提交于 2020-01-04 01:30:10
问题 I recently upgraded my WP8 Silverlight Application to 8.1 Silverlight. But now, ehwn building I always get this error message AppManifest Validation failed. Invalid AppPlatformVersion in WMAppmanifest.xml Bedtime Music What went wrong and how can I fix this. Thanks 回答1: Nah, I found out by myself: In the WMAppmanifest file there is this line: <Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0"> To deal with the resulting error that occurs

Does IsolatedStorage File.Append mode has an error with the the '\n'?

元气小坏坏 提交于 2020-01-03 19:09:32
问题 When appending a file using IsolatedStorage API and adding a \n at the end of the string the file is empty and if adding it in the beginning of the string it erases the file then adds the requested data only IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication(); string fileContents = "\n"+str+ " " + txtblock1.Text; byte[] data = Encoding.UTF8.GetBytes(fileContents); using (IsolatedStorageFileStream stream = new IsolatedStorageFileStream("Th.txt", FileMode.Append, file))

Unhandled exception thrown by PhotoChooserTask

那年仲夏 提交于 2020-01-03 17:10:24
问题 I've got this code and I'm using it to show a button which allows the user to choose an image from his library and use it as a background for my app. So I create a PhotoChooserTask , set it to show the camera and bind it to a method that has to be executed when the task is completed. The button will start the task by showing the PhotoChooserTask . The action to do on complete is quite easy, I've just got to set a boolean value and update an image source. PhotoChooserTask pct_edit = new

How to unzip a file in IsolatedStorage in windows phone 8 app?

不打扰是莪最后的温柔 提交于 2020-01-03 16:52:36
问题 Inside my app, I am trying to download about 180 small audio files all at once. I tried the BackgroundTransferService, but it does not seem stable with so many small files. So, now I am downloading a ZIP of all those audio and want extract them in "audio" folder. I tried the method in this thread: How to unzip files in Windows Phone 8 But I get this error: 'System.IO.IOException' occurred in mscorlib.ni.dll... in the following code. How can I overcome this issue? while (reader.ReadInt32() !=

How to programmatically set TextBlock Foreground Hex Color

﹥>﹥吖頭↗ 提交于 2020-01-03 16:51:31
问题 I have to use Foreground Hex color of a Textblock Pragmatically.it does not work.Please help me. I have tried this example txtHome.Foreground = new SolidColorBrush(Colors.Red); but I want use Hex color code not use Color.red etc.. 回答1: While there are answers that create unnecessary strings, I'd suggest just using the most efficient: var brush=new SolidColorBrush(Color.FromArgb(0xFF, 0xD0, 0x20, 0x30)); I've just used the FromArgb method to convert the hex representation of a color directly.

How to programmatically set TextBlock Foreground Hex Color

我的未来我决定 提交于 2020-01-03 16:50:18
问题 I have to use Foreground Hex color of a Textblock Pragmatically.it does not work.Please help me. I have tried this example txtHome.Foreground = new SolidColorBrush(Colors.Red); but I want use Hex color code not use Color.red etc.. 回答1: While there are answers that create unnecessary strings, I'd suggest just using the most efficient: var brush=new SolidColorBrush(Color.FromArgb(0xFF, 0xD0, 0x20, 0x30)); I've just used the FromArgb method to convert the hex representation of a color directly.

wp8 LonglistSelector AnimateTo

本小妞迷上赌 提交于 2020-01-03 15:57:04
问题 I want to scroll to the last item on my longlistselector in WP8, using animation. I can see that in wp7, LongListSelector had a AnimateTo method. Now it does no longer. Any advice of how to animate scrolling? Thanks 回答1: This is not currently possible due to the way the new LongListSelector is implemented. If you really need this animation, you should put your custom content in a ScrollViewer instead (note that you will lose virtualization and other benefits from doing this, so consider