windows-phone-8

How to pass a parameter to a local html page in WP7 / WP8?

半腔热情 提交于 2019-12-30 10:37:21
问题 Does anyone know how to pass a url parameter to a local page in the Web Browser Control? When you navigate to the page alone "/Html/MyPage.html" all is well but as soon as you add a parameter "/Html/MyPage.html?Message=Hello" I get an error page stating that we could not navigate to the page. Any ideas? 回答1: As another workaround you can pass your arguments as location hash parameter (if it is not used) browser.Navigate(new Uri("www/index.html#p=123&p2=567", UriKind.Relative)); and then in

how to load high resolution image windows phone taskagent? [out of memory]

末鹿安然 提交于 2019-12-30 07:31:50
问题 As we know, it is only 11.5MB memory that can be used in a Windows Phone 8 task agent. I was trying to make dynamic lock screen image in the background task agent. When I get the 480*800 image, it works fine but when I change it to 768*1280 I the exception: Out of memory 1 pixel cast 4 K so (480*800*4)/1024/1024=1.46M (768*1280*4)/1024/1024 = 3.75M When I tried to convert a byte[] to a BitmapImage: public BitmapImage ConvertDownloadStringToStream(byte[] downloadImageBytes) { if (!

how to load high resolution image windows phone taskagent? [out of memory]

这一生的挚爱 提交于 2019-12-30 07:31:49
问题 As we know, it is only 11.5MB memory that can be used in a Windows Phone 8 task agent. I was trying to make dynamic lock screen image in the background task agent. When I get the 480*800 image, it works fine but when I change it to 768*1280 I the exception: Out of memory 1 pixel cast 4 K so (480*800*4)/1024/1024=1.46M (768*1280*4)/1024/1024 = 3.75M When I tried to convert a byte[] to a BitmapImage: public BitmapImage ConvertDownloadStringToStream(byte[] downloadImageBytes) { if (!

Windows Phone- How to set LocalSettings first time?

浪子不回头ぞ 提交于 2019-12-30 06:58:09
问题 In Desktop Application or Web Projects projects there were App.configs and Web.configs files to store settings. These settings were set in development time (or whenever later) but if this occures, it was ALWAYS once action. In Windows Phone 8.1 XAML there isn't any App.config file, so developers are able to use Windows.Storage.ApplicationData.Current.LocalSettings . Nice. How can I set these settings first time (this means on first application run ever, so I can later only read them and

Read SSL Certificate Details on WP8

我与影子孤独终老i 提交于 2019-12-30 04:58:08
问题 I want to read certificate details (e.g. expiration date or CN) for security reasons. Usually there are some properties in network classes available, that allow to check the certificate. This is missing in WP8 implementations. Also I tried to create an SslStream but also there is no way to get any certificate detail like the RemoteCertificate on .net 4.5. var sslStream = new SslStream(new NetworkStream(e.ConnectSocket)); The SslStream is missing everything relating security. So it looks like

How do I use the Bing Search API in Windows Phone?

点点圈 提交于 2019-12-30 02:29:06
问题 I'm trying to use the Bing Search API to find images as backgrounds to the tiles inside of my app. I've included the BingSearchContainer.cs in my Project but I can't make it work with the sample code provided here. Any guidelines for how to use the Bing Search API inside of my Windows Phone 8 app would be appriciated! Thanks for any answer. 回答1: I expect that you already have a AccountKey so I wont tell you have to get one. Implementation First of all, add the BingSearchContainer.cs to your

Sqlite on both Windows Phone 7.1 and Windows Phone 8

删除回忆录丶 提交于 2019-12-30 02:08:09
问题 I'm developing an app for Windows Phone 7.1(7.5) - 8 (Must work for both) , in which database connectivity is required. This Application is already realized for Iphone and Android, so I have to use there Database file to the database structure was the same for all applications. Sqlite is used as the database . All Sqlite Clients for Windows Phone are out of date and not supported any more. http://dotnetslackers.com/articles/silverlight/Windows-Phone-7-Native-Database-Programming-via-Sqlite

Facebook SDK for .NET - Security Warning Issue

南笙酒味 提交于 2019-12-29 08:22:49
问题 everyone. Today I encounter the following message in my Windows Phone App: Success SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone. This happens when my users Login through the Web Browser Control, which get the Login URL from the GetLoginUrl method from the Facebook SDK for .net. This problem is not only happening in my Apps, I've seen users from other Apps having the same problem. Anyone found a solution to this? I'm running this SDK

FIleSavePicker saving 0 bytye file Windows Phone 8

岁酱吖の 提交于 2019-12-29 08:22:26
问题 So Im now told that the FileSavePicker only creates a blank file, and that Ill have to write additional code to then actually write to the file. Ive started a Task WriteToFile after the FileSavePicker but Im unsure how to finish it. With the FileSavePicker, the user selects the folder they wish to save the file to. Where do I point to that in the WriteToFile code and how exactly do I put the file source in it? The files to be saved are all packaged with the app. Im using x.mp3 as an example

LongListSelector different item template for first and last item

半腔热情 提交于 2019-12-29 08:03:42
问题 Im writing my Windows phone 8 app which uses LongListSelector to display some data. How to set different item template for first and last item in LongListSelector? Basically I just want to display same information in every item but use little different item "layout" in last and first item. 回答1: You could implement some kind of data template selector to help in determining which template to select based on index. You can start off by creating a reusable abstract TemplateSelector class. I used