AnnoPref — make saving SharedPreferences easier

Android •

I have been working on Android for years. Whenever making a get/set (or get/put) a field in the SharedPreferences file, I feel hard. It’s, sometimes, because I don’t know which name I should name the preference. Besides, my code would be messed with lots of string constants, and get/put of the SharedPreferences’ object will go along with those constants or I have to define (again) tons of get/set method ...

Handle screen rotation without onConfiguration­Changed

Android •

Especially on camera view, we need to implement a view that can adapt to the screen’s orientation without having a splash of android native screen rotation handler. To do this, we just need to create an instance of OrientationEventListener with an abstract method onOrientationChanged ...

Text and font rendering on Android

Android •

Some notes about text rendering of Android ...