#2016/April-May Useful links

Today is the last day of Spring, and so it’s a wonderful occasion for me to sum up all of the great articles, videos, games and music albums, I’ve gathered for you in April and May 😉

Thinking about important recent events, one should mention Google IO 2016, Unite ’16 Europe, Digital Dragons 16-17 May. Google has decided to add a multi-window support on Android and Facebook launched Live Videos. CD Projekt RED has released their last DLC for The Witcher 3 – Wine and Blood and Windows got enriched with the Bash shell. The weather outside is hotter every day, and I hope you already started to plan your holidays. I did, and hey, I’m sure there’s a lot of great stuff ahead, and I sure will share it with you soon! 😉

April May 2016 Digest

As always, here’s the link to the previous Digest 😉 Thanks for reading!
Continue reading #2016/April-May Useful links

Tutorial: Parse JSON with LoganSquare

Hi, guys!

Today I want to present you a new JSON-parsing library – LoganSquare, written by BlueLine Labs. It is told to be the fasted available and quite easy to use, so I couldn’t miss it 😉 Below you will find an example Android project, which serializes and parses some objects.

Also, I have run Logan’s Benchmark project myself and indeed, the results are good. Not as good, as on their GitHub’s page, but still. Just to make everything clear, I have used Nexus 5 running Android 6.0.1 (ART).

Logan Square benchmark results

As you can see, LoganSquare wins in every category. Lets check how we can use it in our project, shall we?
Continue reading Tutorial: Parse JSON with LoganSquare

#2016/February-March Useful links

Hi, guys!

It is the last day of March and I couldn’t miss the opportunity to share all great links I’ve gathered through the last two months. There is also a “Happy Easter!” greeting which goes to all who celebrate Easter in March and May! What about links, this time the absolute winner is Game Dev, but there are a few wonderful music albums, as well as articles on design matters. Well, check out yourself!

February - March 2016 digest

Here’s the link to the previous Digest 😉
Continue reading #2016/February-March Useful links

Tutorial: Add SQLCipher to your Android app

Hi guys!

Today’s tutorial will be about SQLCipher and its integration in Android (with the means of Android Studio). Just to give some introduction, SQLCipher is used for a full database encryption. What full means is that the DB file is entirely encrypted, not only separate rows or tables. Zetetic, the company behind SQLCipher, provides Community and Commercial edition. You can use the former for commercial projects, though, just have to provide license doc in your app. Also, SQLCipher is not for Android only, it can be used on various platforms.

Regarding security features, SQLCipher uses 256-bit AES in CBC mode by default, with 1kB page size, and it derives the key data using PBKDF2 function. The difference in API that you instantly notice is the passphrase argument in getReadableDatabase() and getWritableDatabase() methods. Now, this passphrase should never be stored in the application, otherwise the whole point of encryption is wasted. One thing to keep in mind, is that the passphrase is not a key! Yes, the DB is encrypted using the key, but it is generated based on the passphrase (~ password) and also can be re-set using PRAGMA rekey command.
Continue reading Tutorial: Add SQLCipher to your Android app