Monday 16 January 2012

Android Intents - Passing Serializable Custom Objects to an Activity

The passing of custom objects to an Activity using Intents can seem very confusing - honestly I never quite worked out how to use Parcelable. It seemed like a lot of code for passing a custom object to one of my activities. The method of passing objects I settled for was one that required the least amount of code and did the job.

Thursday 12 January 2012

Android Custom Logging - Enable/Disable Logs

Part of the Android 'Preparing for Release' onto the Android Market is to remove all Log messages and have the android:debuggable="false" in the manifest file. This is outlined here in the section called 'Turn off logging and debugging'.

Removing all logs can be difficult, however you might still decide, that's okay I will comment all my logs out! This would not be a bad idea but its not the most efficient by far, an alternative is to add 'if' statements for every Log in your app that points to a global boolean flag...however that is also not easy with lots of Log calls.