Author Archives: kiefermat

Inspect HTTP requests from Android devices

Sometimes it is necessary to have a detailed view on the HTTP requests sent by your Android app and also inspect the responses from the server. With a few steps, it is quite easily possible to do this:

Posted in Android, Howtos | Tagged , , | Comments Off

Testing HTTP requests on Android using Robolectric

With Robolectric you can not only mock HTTP responses for your code, but you can also test which HTTP requests your code sends. To do this, you can easily use either one of the static methods provided in the Robolectric … Continue reading

Posted in Android | Tagged , , , , | Comments Off

Mocking HTTP responses in Android using Robolectric

One of the nice features of Robolectric, is its ability to intercept HTTP requests and provide a way to return the HTTP responses you want. It is very useful, if you want to test code that reacts on certain HTTP … Continue reading

Posted in Android | Tagged , , , | Comments Off

Android Unit Testing with Robolectric

The last weeks I had the chance to dive deeper into unit testing of an Android application. The solution we are using is Robolectric. It is an interesting and promising framework since it does not need an emulator but just … Continue reading

Posted in Android | Tagged , , , , | Comments Off

My summary of the Android Open Conference 2011

After arriving back in Germany from the O’Reilly Android Open Conference in San Francisco, I want to summarize my conclusions and general impressions. Being in San Francisco and attending the conference was very inspiring. The keynotes have given a great … Continue reading

Posted in Android | Tagged , , , | Comments Off

SQLiteOpenHelper with Database on SD card

For certain reasons, e.g. because a database is very big, it might be necessary to put the database on the SD card instead of the internal storage of the phone. Of course, putting the database on the SD card should … Continue reading

Posted in Android, Howtos | Tagged , , , | Comments Off

Using UIWebView for displaying Rich Text

If you need to display rich text in your iOS application, the easiest way is to use a UIWebView for this. If you have only one or two links in a text, activating link detection in a UITextView might be … Continue reading

Posted in Howtos, iOS | Tagged | Comments Off

Great Android Memory Management Links

Here are some great links to get the basics of memory management for Android applications: Java Performance blog: How to really measure the memory usage of your objects Android Developers blog: Avoiding memory leaks Java Performance blog: Eclipse Memory Analyzer, … Continue reading

Posted in Android | Tagged , , , , , | Comments Off

Android: Displaying Modified Camera Preview Data

If you just want to have the camera preview data under Android without displaying the preview on the screen the problem is that you have to provide a surface to the Camera object for displaying the preview. On some devices … Continue reading

Posted in Android, Howtos | Tagged , | Comments Off

iOS View Transition Animation in Wrong Direction

If you transition between two views using an animation e.g. by using the method + transitionFromView:toView:duration:options:completion:, it might be that the animation looks fine if the interface orientation is the standard orientation, e.g.UIInterfaceOrientationPortrait. However, in upside down orientation it can be that … Continue reading

Posted in Howtos, iOS | Tagged , , | Comments Off