windows-phone-7.1

Windows Phone 7 ShareStatusTask - Is it possible to customize it further?

与世无争的帅哥 提交于 2019-12-08 12:48:03
问题 ShareStatusTask statusTask = new ShareStatusTask(); statusTask.Status = "Blogging"; statusTask.Show(); There is a ShareStatusTask available in Windows Phone 7 which meets most of my needs. But I need to further customize it. Meaning, I have individual Facebook, Twitter, Live icons. When an user hits them, I should be able to popup the share status task with either Facebook or Twitter or Live pre-selected. If they are not configured, I would show an error message probably to configure it in

Creating an application with multiple targets in Windows Phone 7

末鹿安然 提交于 2019-12-08 09:19:24
Is there any way to create a project/application which will have multiple targets. Its same as how we create multiple targets for an iPhone application in XCode. Basically I have an app which has to be made for different targets, with almost all the similar functionalities but with little change. You can use Configuration Manager to add additional configurations to the list of Debug and Release. Then for each configuration go to Project/Properties/Build/Conditional compilation symbols and add a symbol used with your configuration or target, eg. make it SILVERLIGHT;WINDOWS_PHONE;CUSTOMVERSION1

Generating QR code on Windows Phone 7.1 using ZXing 2.0 C# Port

╄→гoц情女王★ 提交于 2019-12-08 07:42:57
问题 I'm having trouble generating a QR code on mango 7.1 with ZXing 2.0. It should be pretty straight forward, but it's not working. The code: QRCodeWriter writer = new QRCodeWriter(); var bMatrix = writer.encode("Hey dude, QR FTW!", BarcodeFormat.QR_CODE, 25, 25); var asBitmap = bMatrix.ToBitmap(); image1.Source = asBitmap; image1 comes from the xaml. bMatrix seems to contain the data that I need, but image1 never shows a thing. 回答1: So I managed to do a workaround. I'm not sure if my original

WP7 Mango: How to handle skip next/previous from UVC outside of the Audio Playback Agent class library?

痞子三分冷 提交于 2019-12-08 07:26:33
问题 Information on the Windows Phone Audio Playback Agent seems to be somewhat scarce, and the only real article I can find is the one from MSDN. Unfortunately, the implementation in the sample is not practical for most apps, as they use a static list of AudioTracks contained within the Audio Playback Agent class library. For most apps, I'd imagine they would have a dynamic list of AudioTracks managed within the application's main project (ie. View Model or something similar). The issue here

Some JPEGs not displaying correctly / Size limitation

﹥>﹥吖頭↗ 提交于 2019-12-08 07:14:38
问题 I have an app where I download jpegs from Web, decode them and display it on Windows Phone 7.1. It works well, except for one single jpeg file. I tried the app with hundreds of jpegs and this problem occurs rarely. BTW, I tried decoding jpegs with PictureDecoder.DecodeJpeg and ImageTools' Jpeg decoder. Both yielded the same result. %60 or %70 of the picture appears as black and the rest is normal. Note: It's not a 2000 px limit problem. I solved that by splitting images into several pieces

Windows Phone 7 - Camera Flash App Not Functioning

不打扰是莪最后的温柔 提交于 2019-12-08 04:55:22
问题 In attempting to follow the instructions here - http://msdn.microsoft.com/en-us/library/hh202949.aspx I have coded a very simple WP7 app to turn on the camera flash. Everything appears to work, except....the flash doesn't activate. My phone is Samsung SGH-I917 (latest OS update), I am using the WP7 SDK 7.1, I've checked that the flash of my camera actually does work. I have also checked to make sure the following is in the WMAppManifest.xml file. <Capability Name="ID_CAP_ISV_CAMERA" /> The

how to store and use application wide object windows phone 7/8?

折月煮酒 提交于 2019-12-08 04:15:30
I have an object which i am using almost all windows phone pages, currently i am using via PhoneApplicationService.Current.State["xx"] = m_xx; NavigationService.Navigate(new Uri("/abc.xaml", UriKind.Relative)); but this has to be done for all activities, which i don't want. is there a better way to save m_xx object which i can use in all the pages? what is the best practice? Can i make object static to some class and then use across pages via that class name? You might want to look into the MVVM pattern. Still, if it's too much a change for your application, you can use a hybrid approach, with

Using Soap in Shared Mono Library for WP 7 and Android

梦想与她 提交于 2019-12-07 21:15:24
问题 I'm currently working on an shared library based on mono, where I want to put as much business logic of my app as possible. I used this helpful tutorial. I managed putting the whole logic for rest-requests in this shared library, but now I'm stuck with soap. I used the wsdl command of mono to generate Client Stubcode from my wsdl (as described here http://www.mono-project.com/Web_Services). When I put the generated class to my C# library, which is the root project of my shared library, there

How to run existing phonegap(ios) app in VisualStudio for windows development

坚强是说给别人听的谎言 提交于 2019-12-07 16:31:07
问题 I am working on phonegap (IOS) since 6months, application is ready to go. but now i want this application to run on visualstudio. i am useing VS2010 and also installed windows sdk for phone development.i have also install cordova template for windows and its working fine for new development. but now all i want to use my ready made phonegap application thas was made in xcode for ios in windows. How can i make it possible ? Edits : When trying to run my ios application to VS i just replace WWW

Windows Phone 7 receive UDP packet (broadcast or unicast) over wifi

狂风中的少年 提交于 2019-12-07 12:16:28
问题 I have watched for several days the various forums regarding Windows Phone 7 however none gave me a definitive answer. So far I have not been able to receive a UDP packet (neither broadcast nor unicast) sent from a computer connected over wifi to a Windows Phone 7 device (running on emulator). Apparently UDP unicast should be supported and the code below runs correctly, however no UDP packet is received form the phone. I hope someone can correct the below code. Notice the below code follows