lib/android: update `ui` to use NitActivity and be on the UI thread