Android SQLite

Android SQLite savepoints: nested transactions and workaround

Hello! In this article I’ll show one small trick with SQLite savepoints and my story how I’ve found this trick. Google claims that Android fully supports SQLite database engine. But the code that framework provides to us sometimes isn’t implemented well, so we cannot use some SQLite features and forced to search for workarounds. One of the features that doesn’t work as expected is savepoint. In short, it’s a tag in SQLite’s operations journal that can mark some important point in operations history to fall back to it if something was wrong....

September 30, 2018 · 4 min · fobo66

Working with XML using Retrofit2

Hello! Sometimes you need to work with some API that was created years ago, or contains more semantics that JSON allows. That APIs mostly created with XML. It’s pretty ugly format, hard to read by humans, but it’s still relevant, and sadly we need to know how to work with it. It’s not so obvious in Java as it appears to be. I’ve spent two days struggling figuring out why it’s not working....

March 27, 2017 · 3 min · fobo66