How to using google reader API on Windows Phone 7.1

Google data is good API tool for C# or other language to connect with Google related service, however here is no official Google Reader API on document. and Google data don’t support for Windows phone (only for Windows mobile for now). However it could be found on web for some of unofficial document for Google Reader API as follows: Unofficial Google Reader API R2 google reader on Google code pyfeed on Google code But however to come out detail implement for Windows Phone, it quit need time to work detail. Allow me try to list some major problems of this. Most important of using HttpWebRequest is the error repose > > The remote server returned an error: NotFound > > It is most common error code your will find during you try to login or get any feedback on Window Phone. It could be either you missing your GET parameter...
繼續閱讀

About Metro app Suspend/Resume and system sleep/Hibernate

According to Metro Application Lifetime sample and related document, it description about Metro app about suspend/resume. However, I also find I could not make my Metro app enter suspend mode, so I try to figure out some answer from MSFT forum. Refer here and here. Here is my summary for this: When leave app about 5 sec or trigger another app about 5 sec, the “suspend” event will called. “Suspends”/”Resume” event will trigger automatically when you not attach debugger on release build. See “Star without Debugging” on “debug” tab. If you using debugger, you only trigger “suspend” manually. Sleep/Hibernate will trigger “Suspend” if your app is release version without debugger attach.
繼續閱讀

HOW TO COMMUNICATE BETWEEN METRO UI AND DESKTOP UI ON WIN8 (part2)

From last article “HOW TO COMMUNICATE BETWEEN METRO UI AND DESKTOP UI ON WIN8”, it talking about to pass the control between Metro/Desktop application. However during programing on Metro and Desktop, you might need some communication mechanism for Metro/Desktop application. I just provide my experience for this kind of question, here is my solution for communicate between Metro and Desktop on Win8 Customer Preview.  (I also feedback on MSFT forum here) Write a application to listen TCP as information center which call “DesktopSvr” (ex: here) Metro app try to send message to localhost via streamsocket (P.S. localhost is not work, but 127.0.0.1 work well). “DesktopSvr” will pass desktop app via IPC or anyway you familiar. Metro application communication guidline: Desktop might also pass some data to “DesktopSvr” it will be our information center. Metro: Since Metro UI will not get any TCP feedback if app under suspends, so communicate between...
繼續閱讀

How to communicate between Metro UI and Desktop UI on Win8

It just a summarize to explain MSFT sample: Association launching sample. Metro UI to call Desktop UI File extension call: Add default open on registry if you want create new one. [HKEY_CLASSES_ROOT.XXX] Using Windows.System.Launcher.launchFileAsync Protocol call: (such as “http://”, “mailto://”) Add default protocol on registry if you want create new one. [HKEY_CLASSES_ROOT%PROTOCOL%] [HKEY_CLASSES_ROOT\%PROTOCOL%DefaultIcon] @=”C:\Program Files\XXX.exe,0”[HKEY_CLASSES_ROOT\%PROTOCOL%shell] @=”play” [HKEY_CLASSES_ROOT\%PROTOCOL%shellopen] @=”” [HKEY_CLASSES_ROOT\%PROTOCOL%shellopencommand] @=”“C:\Program Files\XXX.exe” %1” [HKEY_CLASSES_ROOT%PROTOCOL%shellplaycommand] @=”“C:\Program Files\XXX.exe” %1” * Using Windows.System.Launcher.launchUriAsync P.S.: Since it is Async, please note you might need handle it well to make it work. :) Metro UI to call Desktop UI * File extension call * Add on “package.appxmanifest” “Declarations” to add “Protocol”. * Handle callback feedback and launch this app. * Double click file on desktop UI. * Protocol call: (such as “http://”, “mailto://”) * Add on “package.appxmanifest” “Declarations” to add “File Type Associations”. (ex: “sampleApp://”) * Handle callback feedback and launch this app. * Type “sampleApp://”...
繼續閱讀

Windows 8- 8250 note

Windows 8 8250 is official Win8 beta which release on 02/29 It not include VS2011 which vs2011 beta also release. Only VS2011 Express for Win8 has “Store” publish. ACK/HCK is not include with Win8 beta but include on VS2011 beta
繼續閱讀

學習日誌-LINQ心得

最近再研究如何寫出一個aggregator, 首先把LINQ跟JSON都看了一下。試著想找出一可以方便在各大相片網站找資料的共通語言,由於codeplex上面有Linq.Flickr這個open source 的library,也開始試著研究。 參考: 使用linq.flickr搜尋相片 Note: 由於改WLWPlurk,稱這次機會把手邊平台由VS2008改成VS2010。也裝了Visual Studio Achievements。 為了開發快一點也把順手語言改成C#,不過後來發現Linq.Flickr是.Net3.5的~ 竟然也踩到了3.5 與 4.0 不共通的弊病。 所以也在Add reference 卡了一下。 Flickr user name 不是URL上面的userID 而是user definded 的名字,為了這個我還以為是我安裝有問題~ 認真的trace 下Linq.Flickr去。
繼續閱讀