[FIX] Build a non-deprecated preferenceactivity
[FIX] Remove or fix deprecated methods