[android] Resolve a bunch of Inspection warnings.