windows-phone-7.1

Preinitialize BackgroundAudioPlayer in WP7?

自闭症网瘾萝莉.ら 提交于 2019-12-04 10:57:59
When I am using the BackgroundAudioPlayer in my Windows Phone 7 application, it takes a lot of time to load the first time I want to play a song. Is there any way of preinitializing the BackgroundAudioPlayer before playing the first track, so that when I start playing, it starts right along? I have googled it, but no luck. I am just using BackgroundAudioPlayer.Instance when I e.g. want to play, pause, stop etc an audiotrack. Is there something other i could do to fix this? You could just call BackgroundAudioPlayer.Instance.Stop(); in your App constructor and then discard the first occurance of

Detect application launch from Universal Volume Control

强颜欢笑 提交于 2019-12-04 10:23:12
I have an application, targeting mango devices, which plays music via a BackgroundAudioAgent. As such it integrates with the universal volume control (UVC). Is there a way to detect when the application is launched by tapping the artists details in the UVC? Alternatively, is there a way to set a deep link for the UVC to use? I want this so that I can take the user to the "Now playing" page, rather than the main page, when the app is launched via the UVC. Update This also affects launching the app from the now playing tile in the Music & Video hub as the BackgroundAudioPlayer automatically

Custom live tile rendering issue on Windows Phone (7/8)

陌路散爱 提交于 2019-12-04 09:59:36
In my Windows Phone app's main page, users can click a button to do some stuff and that will trigger the live tile to update. The problem I am having is, if the user clicks the button and then hit the phone's Back button really quickly, the live tile sometimes will not render properly. This issue rarely happens, but it does happen and when it happens it just looks bad... The way I implement the live tile is, create a user control that looks exactly the same as the live tile and then save it to isolated storage. Then retrieve it and store it in a FliptileData object. Finally I call the Update

WP 8: How to deploy/export Application from Visual Studio

有些话、适合烂在心里 提交于 2019-12-04 09:36:06
in android, we right click to our project, click export and get the apk. For windows phone 8 , in visual studio 2012, how can i export my application into my desktop or somewhere ? Anyone can help about it ? Thanks ! Each time when you build you project - Visual Studio builds XAP file, which is actual package for uploading it to Windows Phone Store or deploying to the real device. This may help Submit your app For Windows Phone you get a XAP file instead of an APK file. The XAP in the ARM Release ie- ..\<Project Folder>\Bin\ARM\Release\ should be submitted to the Windows Store or Deployed to

Convert wav to wma

£可爱£侵袭症+ 提交于 2019-12-04 09:06:27
I want to convert a .wav file to .wma (or .mp3) on Windows Phone 7 Mango. I want to save a recording from the microphone and use the SaveRingtoneTask so I can save it as a ringtone. How can I convert the file on Windows Phone 7 so I don't have to use a web service? If it can't be done on the phone does anyone know how to convert it and trim it down to 40 seconds? I ended up using this example http://www.codeproject.com/KB/audio-video/MP3Compressor.aspx and stripping out everything but the .mp3 convertions. MasterMastic Have a look at Windows Media Audio compressor . 来源: https://stackoverflow

Windows phone 7 Mango Development Links

柔情痞子 提交于 2019-12-04 08:46:37
问题 I am new to Windows Phone development. I am starting by learning C# and Silverlight. Does anybody have any links/resources for learning Windows Phone Mango? 回答1: Try out these: http://indyfromoz.wordpress.com/windows-phone-7-resources/ http://www.reddit.com/r/wp7dev/ http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx http://www.kunal-chowdhury.com/2011/06/windows-phone-7-mango-tutorial-24-local.html http://www.windowsphonegeek.com/ArticleIndex http://www.silverlight.net/ http:/

Evenly Spaced Dashes with StrokeDashArray

别说谁变了你拦得住时间么 提交于 2019-12-04 07:03:07
I'm trying to create a poker chip like the one here: http://www.casinowholesalers.com/shop/product_info.php?cPath=57&products_id=379 using Expression Blend 4 for a WP7.1 Silverlight 4 app. I'm trying to create the six white "boxes" on the edge of the chip (ignoring for now the dice images and inner dashed line). The way I did it was two create two ellipses, one with no stroke, the other is the exact same size but with a stroke of 24, a color of White, and the StrokeDashArray to 1.8 (that's not "1 8", it's actually 1.8 with no second value). It looks pretty close to evenly sized and spaced (but

Windows Phone7 Share data among applications

橙三吉。 提交于 2019-12-04 06:10:39
问题 I searched everywhere and wondering whether any posible way available for share data among applications within the mobile phone itself. What I basically meant by that is, if there any way that can create a file from one application and allow other applications to access that file. The problem is, If we save the file in application's isolated storage, then any other application won't be able to access it. For example a scenario like this. One application produce a file and store it in a public

Do code after OnNavigatedTo

江枫思渺然 提交于 2019-12-04 05:27:11
问题 I Have Code get IdUsers From Other Page String IdUsers; public Main_Wallets_Page() { InitializeComponent(); MessageBox.Show(IdUsers); } protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { String Id; if (NavigationContext.QueryString.TryGetValue("IdUsers", out Id)) IdUsers = Id; } The MessageBox Alway be Null. I Want to MessageBox Show the "IdUsers" after OnNavigationTo (Do not put the MessageBox IN "OnNavigationTo"). How can i do it ? 回答1: You shouldn't

Is there any point in writing pre-Mango (7.0) Windows Phone 7 applications

▼魔方 西西 提交于 2019-12-04 01:03:48
问题 Inspired by an exchange on a recent question, I wanted to know whether there is any good reason to develop Windows Phone 7 applications that target pre-Mango models, i.e. by creating applications that target the 7.0 APIs rather than the more recent 7.1 APIs. My impression was that because the Mango update has now been fully rolled-out, there is very little reason why anyone would have a phone with a pre-Mango OS. My guess is anyone with a pre-Mango phone probably never connects it to their