windows-phone-7

Is it possible to process the push notification data in Windows Phone 7

假装没事ソ 提交于 2019-12-25 08:17:16
问题 i have a question for my student project. I am currently using push notification an the Windows Phone 7 and wanted to ask if it is possible - like as it is in Android - to process the delivered data in background, creating a wakelock or something. Here the scenerio how it works in Android: 1. I send a notification to the device (more precise to the C2DM Server, but that doesn't matters now). 2. The App receives my notification while it is closed, shows a tile on the screens and saves the data

Show login page first time app is launched

这一生的挚爱 提交于 2019-12-25 08:15:24
问题 I'm working on a small app that uses the Facebook API. What I want to do is show my login/connect to Facebook page the first time the app is launched (or as long as the user has not authenticated. My primary view is actually a pivot application but I don't want to show that as long as I don't have the Facebook acces token. I also want to be able to acces this 'login' page from the application bar (it will be the same as the settings page). Any idea how I can do this? 回答1: I would recommend

LINQ to XML to parse multiple Uri's to a single hyperlinkbutton

こ雲淡風輕ζ 提交于 2019-12-25 08:05:09
问题 I had a problem with passing a parsed string to a button click event. It was solved in this thread here, but now there's another small problem but it's with LINQ TO XML. I'm making a page which will show all of the apps that I make and will be updated with XML which I'll host on my server. On that page I'm parsing the icon, the title, the price and the marketplace Uri of the apps. I'm binding the Uri and the title of the apps to a single hyperlinkbutton but the problem is that every

add header to WebHeaderCollection in POST method windows phone 7

眉间皱痕 提交于 2019-12-25 07:58:20
问题 My server requires us to post a header that include device ID to server, normally we can do some thing like this: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_connectionURL); request.ContentType = "application/x-www-form-urlencoded"; request.Headers.Add // THIS METHOD DOESN'T EXIST in windows phone 7 request.Method = "POST"; It has this method, which allows you to set available headers, but the header I want is not included there, how can I add another header to

How can i parse html file in windows phone 7?

点点圈 提交于 2019-12-25 07:22:00
问题 Hi am using xml file given below,i want to parse html file . <Description> <Fullcontent> <div id="container" class="cf"> <link rel="stylesheet" href="http://dev2.mercuryminds.com/imageslider/css/demo.css" type="text/css" media="screen" /> <ul class="slides"> <li>Sonam Kapoor<img src="http://deys.jpeg"/></li> <li>Amithab<img src="http://deysAmithab.jpeg"/></li> <li>sridevi<img src="http://deyssridevi.jpeg"/></li> <li>anil-kapoor<img src="http://deysanil-kapoor.jpeg"/></li> </ul> </div> <

Periodic task concurrency issue with foreground app

风格不统一 提交于 2019-12-25 07:17:16
问题 I am developing a Windows Phone 8 app that would have a live flip tile. I will be creating a scheduled agent (periodic task not resource intensive) which will update the live tile using local data. The whole app does not connect to the internet in any way, it uses only local data. So push notifications are out of the question. I need to update the live tile from the background agent and/or from the foreground app when it's launched whichever happens first. However how can I ensure the

Periodic task concurrency issue with foreground app

无人久伴 提交于 2019-12-25 07:16:20
问题 I am developing a Windows Phone 8 app that would have a live flip tile. I will be creating a scheduled agent (periodic task not resource intensive) which will update the live tile using local data. The whole app does not connect to the internet in any way, it uses only local data. So push notifications are out of the question. I need to update the live tile from the background agent and/or from the foreground app when it's launched whichever happens first. However how can I ensure the

How to get the windows phone application download link from windows store

末鹿安然 提交于 2019-12-25 06:59:43
问题 I'm developing windows phone 8 application, in which i have the share application functionality. The main purpose of this share feature is to share the application download link(windows store) on the face-book or twitter. Before publishing the application to the store, we can't get the download link of the application. But we need this application download link to implement the share feature. So how can we get/estimate the application download link. Thanks 回答1: Quick and easy solution, submit

How to validate, only allowing the user to select 1 file to read?

喜你入骨 提交于 2019-12-25 06:49:07
问题 Below are the codes to allow the user to read a File. How to allow the user to select only 1 file to read? private void button3_Click(object sender, RoutedEventArgs e) { ViewDiskModel model = this.ContentPanel.DataContext as ViewDiskModel; if (model.Files.Any(file => file.IsChecked)) { model.ReadSelectedFiles.Execute(null); NavigationService.Navigate(new Uri("/AnswerQuestionPage.xaml", UriKind.Relative)); } else if ((model.Files.Any(file => file.IsChecked)) > 1) { MessageBox.Show("Please

Can i play m3u8 format in windows mobile?

笑着哭i 提交于 2019-12-25 06:24:03
问题 Sorry for the question, i don't have windows mobile to test. I am trying to develop a live internet radio application. The format they stream is in m3u8, i have got SDKs for all other mobile platorms but not for windows phone. Is there any SDK available for playing internet radio or will the m3u8 format of media supports in default. Please suggest me. Thanks in advance. 回答1: By default - no. However, you could use the HTTP Live Streaming SDK. 回答2: You can try Windows Phone Streaming Media