Memory management in mobile apps

Throughout it’s lifetime, an app is allowed to make use of the internal memory, as object instances obtain parts of it for temporary use and then return it. When an objects doesn’t use the memory anymore but refuse to let it go, a memory leak is created.   Common causes of memory leaks In the […]

Unit testing caveats

There is much controversy regarding test driven development. People do not seem to settle on the time trade-off, the London vs. State school, TDD vs BDD and the list could go on. But before diving into all of these, my first reports from the tranches of unit testing are as follows. Behavior depending on date […]

Working with WebViews in Xamarin.Android

Showing a webpage inside a Xamarin.Android app can be done using a WebView. Here are some tips. Using Directives Pop science says that more choices don’t bring more happiness. Well, yeah. Turns out you have two options for creating an URL. This was half of my problem. Initially, I was referencing the System library, which […]

An easier way of writing conditional code

I love attending code retreats. It’s an extremely efficient way to learn new things, though the people you pair with and the exercises you practice. And since keeping up with the newest thing is essential to a programmer, what better way to expand your knowledge is there than to let your creativity loose writing code […]

Setting the active configuration in Xamarin Studio

Building cross-platform applications in Xamarin Studio, you often need to be working on one single platform at a given moment. Since Xamarin Studio allows having both iOS and Android projects under the same solution, when building or deploying, they all get compiled. This is not very efficient, since you only want to deploy one platform […]

How to open multiple instances of Xamarin Studio on a Mac

Normally, Xamarin Studio does not allow multiple solutions being open. You can, however, open multiple instances of Xamarin Studio. You can type in your terminal the following command: open -n /Applications/”Xamarin Studio.app” This works fine if you need this once, but if you find that you will be doing this on a regular basis, follow […]