windows-phone-8

Generate tone, or sound, in Windows Phone 8.1 app

爷,独闯天下 提交于 2019-12-25 04:18:06
问题 I am attempting to generate a tone, for a set frequency and duration, on Windows Phone 8.1. Following up on the topic presented here: Playing a sound from a generated buffer in a Windows 8 app, here's my attempted solution for Windows Phone 8.1, running in a simulator in Visual Studio 2015, in VB.NET attempting to implement SharpDX.XAudio2. No sound comes out, but I think it's right. Any ideas? ' Initialization phase, keep this buffer during the life of your application ' Allocate 10s at 44

Can I use App Insights in a background agent?

女生的网名这么多〃 提交于 2019-12-25 03:59:50
问题 I want to add analytics to my Windows Phone 8 app and that's all fine except I now want to trace when my background agent triggers a specific event. Does App Insights support this? 回答1: I'd like to say that Application Insights does support the scenario you are describing. Recent versions of the Application Insights should support background tasks. However, you should use the "core" package, and not the full platform package. This core package provides all the APIs needed to send telemetry to

Create Geofence while storing the location to the sqlite database [duplicate]

半世苍凉 提交于 2019-12-25 03:59:31
问题 This question already has answers here : SQlite Getting nearest locations (with latitude and longitude) (7 answers) Closed 3 years ago . I am developing windows mobile application. I want to create geofence when storing the location to the sqlite database to generate SMS alerts when entering to the geofence. I am loading the location to the text boxes through map. This is the code so far private void Load_Location(object sender, RoutedEventArgs e) { LattxtBx.Text = String.Format("{0}",

Problems with the authentication to a REST service use `HttpClient` from an `WP8` App

假如想象 提交于 2019-12-25 03:58:28
问题 I am trying to conect my app with some Rest services that requires authentication and I am having some problems. I using the HttpClient class and it works fine with the services that do not need this authentication like the login or the signup. I think that the problem is that I need to specify a schema in the AuthenticationHeaderValue object and this schema goes into the header. The result of the header is like this "Authorization: Authorization a81b4974-f328-44e0-901a-95e29fb672aa

Where is the VisibleChanged event for a Windows Phone 8 user control?

安稳与你 提交于 2019-12-25 03:58:19
问题 I've found more than one reference to a VisibleChanged event on MSDN pages that state it is for the Windows Phone 8 platform. However, when I try to access it via Intellisense for either the top level user control I'm building (using the "this" keyword), or for the LayoutRoot grid, I don't see it. I did a full search via the Object Browser and I don't see anything there either. Where is it? I need to perform certain task only when the user control is visible, and I need them to stop when it

How to detect default pdfviewer and open PDF in windows phone

纵饮孤独 提交于 2019-12-25 03:55:33
问题 I am trying to working on download and open pdf file in windows phone 8. Where the code is successfully working when any pdf viewer (Adobe, MS PDF Reader etc.) presents on phone. protected async void openPDFFile(string path) { try { // Access isolated storage. StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder; // Access the bug query file. StorageFile pdfFile = await local.GetFileAsync(path); if (pdfFile != null) { // Launch the pdf file. IAsyncOperation<bool> success

C# Dictionary add entry with wrong order

时光毁灭记忆、已成空白 提交于 2019-12-25 03:54:23
问题 I add a new item into the RoutingList but after the first delete the order is wrong. public Dictionary<int, Route> RoutingList = new Dictionary<int, Route>(); For example: 1,route 2,route 3,route 4,route 5,route Now I delete the first one. 2,route 3,route 4,route 5,route By adding the next item I get this list: 6,route 2,route 3,route 4,route 5,route And after this the first one (6) will deleted. But this is wrong. I want to delete the No. 2. Why? int key = RoutingList.LastOrDefault().Key;

Accessing local file with Ajax on Windows phone 8

╄→гoц情女王★ 提交于 2019-12-25 03:49:21
问题 I have a page Index.html which call a javascript, that make a ajax request looking for a local .html file This file is imported in my C# project as content and the javascript fire inside a WP8 webbrowser control. The problem is that the ajax function return an access denied error. What can i do? sorry for my broken english Resolved by adding isLocal:true in the ajax request $.ajax({ url: "page.html", dataType: "html", async: false, // Otherwise Android 2.2 doesn't show menu isLocal: true, //

Timer in MVVM for Windows Phone 8 and Windows 8

丶灬走出姿态 提交于 2019-12-25 03:44:24
问题 I have a Universal/Portable C# library for Windows Phone 8 and Windows 8. The library will be referenced by apps for each platform. In the library is a view model and I'm trying to put a timer in the view model. The only "Timer" available in the library for both platforms is the System.Threading.Timer (no DispatcherTimer). However, I cannot work around the cross threading issues. Is there a way to do this or do I have to create a timer in each app in the page code behind? public class

File uploading not working on Win phone 8 3G connection

荒凉一梦 提交于 2019-12-25 03:29:13
问题 I have a app in which user can record video and an api to upload recorded video to azure. I am using below code HttpClientHandler handler = new HttpClientHandler(); handler.MaxRequestContentBufferSize = int.MaxValue; using (HttpClient httpClient = new HttpClient(handler) { MaxResponseContentBufferSize = int.MaxValue }) { MultipartFormDataContent content = new MultipartFormDataContent(); content.Add(new ByteArrayContent(chunks), "file", fileName); HttpResponseMessage response = null; response