This post is in response to my need to have an Android Database that will:
A) Never ever get into an illegal state, i.e. errors occur if you create/write/read tables at the same time.
B) Split up management of Database tables by creating classes for each one, but still using one single Database.
C) Reuse common Database functionality by creating helper methods.
D) Works at least in Android 2.1+.
Sunday, 24 June 2012
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
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.
Subscribe to:
Posts (Atom)