windows-phone-8.1

Can I write file on SD Card

故事扮演 提交于 2019-12-12 09:45:02
问题 With the new SDK 8.1 of Windows Phone is there a way to write file on SD Card ? Before we could only read. I have an idea to save file from my app on SD Card and this can be interesting for the Lumia 520 who have few memory. 回答1: More information about Data and Files you will find in the documentation. And as written here: What you can access Your app can only read and write files of file types that the app has registered to handle in the app manifest file. Your app can also create and manage

How to modify Cortana Voice Activation commands (XML) in C#?

妖精的绣舞 提交于 2019-12-12 08:48:09
问题 I currently have Cortana implemented into my Silverlight app. The voice commands are stored in CortanaCommands.xml, here is the code: <?xml version="1.0" encoding="utf-8"?> <VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.1"> <CommandSet xml:lang="en-US"> <CommandPrefix>Dr. Bailey</CommandPrefix> <Example> Open app to take dictation </Example> <Command Name="Text"> <Example> Is it going to rain? </Example> <ListenFor> [create] {dictation} </ListenFor> <Feedback> "" <

Toast Notification parameters in Windows Phone 8.1 Silverlight

泪湿孤枕 提交于 2019-12-12 08:27:31
问题 Okay so I'm using the new ToastNotificationManager in my 8.1 SL project instead of the old ShellToast. The ShellToast had NavigationUri on the toast message which made it really easy. In the new toasts you have to specify the launch parameters by yourself according to this article. However it seems like 8.1 SL doesn't have the event OnLaunched(LaunchActivatedEventArgs args) you are supposed to listen for in App.xaml.cs for the parameters: Step 2: Handle the app's "OnLaunched" event When the

Change default startup page for windows phone 8.1 app

谁说我不能喝 提交于 2019-12-12 07:56:48
问题 I created a new Basic Page called PivotPage.xaml in the Windows Phone 8.1 project of the universal app solution. When I go to App.xaml under the Shared partition, I want to change HubPage in the code below to the newly created PivotPage . But VS refuses to recognize PivotPage as a legitimate type. The namespace of both pages and the class definitions are exactly the same. if (!rootFrame.Navigate(typeof(HubPage), e.Arguments)) { throw new Exception("Failed to create initial page"); } If there

error CS0012: The type 'TaskAwaiter<>' is defined in an assembly that is not referenced

社会主义新天地 提交于 2019-12-12 07:52:10
问题 When I try to debug my Windows Phone 8.1 project the Locals window is empty, and Watch shows an error for this : this error CS0012: The type 'TaskAwaiter<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Everything else seems to work just fine, there are no errors/warnings related to this, it happens only while debuging. And also not for all projects. I've tried

Upgrading wp8 to wp8.1 silverlight, debugger cannot be launched

老子叫甜甜 提交于 2019-12-12 07:25:16
问题 I have now had an error with VS2013 and WP8.1 silverlight for a couple of days. I get a couple of different errors, ..Ensure unlocked screen.. , AgHost.exe could not be launched , port is in use by another program and ensure the device is unlocked . These errors came suddenly after I retarged the solution. I have no compiling errors. Solution Attempts Restart PC Restart program unregister and reregister the phone reinstall Update 3 reinstall VS2013 Windows Phone 8 Application crash once its

Few doubts related Windows push Notification service in WP Universal application

浪尽此生 提交于 2019-12-12 06:12:36
问题 I am a Windows Phone application developer. In my application I implemented push notification services using WNS . I have few doubts/questions regarding this. Please clarify How can we disable push notification for a specific application ? Can we prevent it from application side ? Or handle it from server side? If I un install my application and the server is still sending you the push notifications. Will it receive in to phone? Is that necessary to ask user permission before registering push

Compose Email with attachment on Windows Phone 8.1 Silverlight application

吃可爱长大的小学妹 提交于 2019-12-12 06:11:50
问题 Here's my function (based on this: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn632427.aspx): private async void ComposeEmail(String subject, String messageBody, String attachmentFile) { var msg = new EmailMessage(); msg.Subject = subject; msg.Body = messageBody; msg.To.Add(new EmailRecipient("example@example.com")); if (attachmentFile != null && attachmentFile != "") { bool exists = File.Exists(attachmentFile); Debug.WriteLine("File: " + attachmentFile + (exists ? " exists" :

'LoginButton Control' sample for Facebook SDK for .NET do not show GraphUser objects

给你一囗甜甜゛ 提交于 2019-12-12 06:04:42
问题 I am trying to learn using the Facebook SDK for .NET. Specifically for Windows Phone 8.1 Universal App (not Silverlight). For this I have build the 'LoginButton Control' sample that can be found here: http://facebooksdk.net/docs/windows/controls/login-ui-control/ I have sucessfully logged in to Facebook with the sample, but the 'Name' newer shows up. It is related to this part of the code: <!--user information--> <StackPanel HorizontalAlignment="Right"> <TextBlock HorizontalAlignment="Center"

Pushnotifications in windows phone app 8.1?

天大地大妈咪最大 提交于 2019-12-12 05:59:25
问题 I want to send pushnotifications to windows phone. string subscriptionUri = "https://hk2.notify.windows.com/?token=AwYAAAAqksei6yWvmlcV8RmESRNrXotwCWV0AY9PSOtmgpIo%2bNwq67tkYjG7450r%2bUKpLwxri%2bO7Re9%2f8qmZDAc3TmTlMOaONVqq9ogCKONX2oWe%2fVq%2bT9tIxEllJW3tnKJEfNM%3d"; //string subscriptionUri = "http://s.notify.live.net/u/1/hk2/H2QAAACfgMkOSS8jNp_XgLamnXFqQrk6g8L6pRJHsQxvppe8-lD4EgCu8LcwdtuDIGnY78tjyaL1lsFxLjWl5s-Sgum5tjBQMk-9emm73LJa9125iECyFCoPb5erRBRwGAgNv2o/d2luZG93c3Bob25lZGVmYXVsdA