The class assumes that the member variables are accessed in the same thread when the class was created, but onServiceConnected/Disconnected is called in the main thread according to the documentation. Bug: 25307613 Change-Id: I86b63cc45fbc6995cedce39f5c151e99f76172d0