Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Talk:Background Agents Debugging Tips on Windows Phone
Vaishali Rawat - Toast in WP?
As per your 2nd last point, you have given the option to use Toast in WP. AFAIK, Toast is not available in WP. Right?
10:13, 10 April 2013 (EEST)
Vinayppatil - Yes, Toast do exists for windows phone.
Toast exists for windows phone. They show up on the top of status bar. Look http://msdn.microsoft.com/en-in/library/windowsphone/develop/jj662938(v=vs.105).aspx for details.
11:18, 10 April 2013 (EEST)
Hamishwillee - Subedited/Reviewed
I've subedited this for wiki style and improved the English. Thanks, I think this is useful. If we ever have a "everything about background agents" topic it would be useful to include this material.
07:15, 16 May 2013 (EEST)
Hamishwillee - Hi Greg
Greg, I'm going to make this more readable by splitting into sections. Please do upload your files in a zip.
talk) 06:55, 21 November 2013 (EET)(
Hamishwillee - Greg, is split
I've split this so that "most" tips are in their own section. This is more readable and you get the Table of contents list on top right.
The benefit for you is that now you have your own discrete section to play in - you can easily include code fragments showing how to use your logger.
If you have trouble uploading, let me know.
talk) 07:11, 21 November 2013 (EET)(
Gregstoll2 - Thanks!Thanks Hamish! I'll add some code fragments later.
talk) 07:15, 21 November 2013 (EET)(
Hamishwillee - Looks goodThanks very much for taking the time to add these!
talk) 08:02, 21 November 2013 (EET)(
Hamishwillee - Thanks, even better with the code fragments
I've subedited your changes to use code blocks.
I also added a note about how debug logging should be hidden, but can be enabled as needed. I think that is quite useful. I wonder if there are better ways to do it than URI associations as I suggested? If so, might be worth having a separate section. I've asked the question: http://developer.nokia.com/Community/Discussion/showthread.php/243673-Best-way-to-provide-runtime-conditional-enabling-of-code-with-quot-token-quot?p=929835#post929835
talk) 04:38, 22 November 2013 (EET)(
We used similar approach in one of the apps. After using the app for 4 days our log become too large and agent started failing with OutOfMemoryException. There are better ways to log data, especially without reading all log into the memory.
Author, would be great if you can modify your code to work with less memory footprint.Thanks.
talk) 06:01, 26 November 2013 (EET)(
Hamishwillee - Alex, good point
Absolutely, particularly if the logging code is going to be run on production devices.
In http://developer.nokia.com/Community/Discussion/showthread.php/243673-Best-way-to-provide-runtime-conditional-enabling-of-code-with-quot-token-quot?p=929835#post929835 I have suggested that perhaps we need to step back and write a separate article on logging on windows phone, then link to it from all of these articles which use logging for different purposes. Would appreciate your feedback on what that logging might look like.
talk) 07:07, 26 November 2013 (EET)(
It will be my pleasure. I'm concerned about following things: 1. Easy to use 2. Small memory footprint, less dependencies 3. Log format - option to view and "understand logs" (for now I'm trying to write in log4j format and then use any of those "desktop" log viewers 4. Sharing log from production device (app installed from beta or store) to developers. Take into account log could be very large. 5. Thread safety
If something comes to my mind, I'll comment into this article.Thank you
talk) 09:22, 26 November 2013 (EET)(
Hamishwillee - Thanks Alex
I've cross posted your comments here. If you create such a framework then please do create an article to publish it - I can subedit and help improve it.
I don't see a problem of using desktop viewers for detailed analysis, but it would be good to have some ability to display in the UI on the device.
talk) 05:42, 27 November 2013 (EET)(