I cannot understand what is the bindServiceAsUser()
method used for. Can anyone please kindly explain about it ? Googling seems doesn't help much.
public boolean bindService(Intent intent, ServiceConnection connection, int flags) {
return mContext.bindServiceAsUser(intent, connection, flags, UserHandle.OWNER);
}
I've never felt the need to use
bindServiceAsUser()
, but here's what the Android documentation has to say about it:The multi-user support was added in Android 4.2 (API: 17), read about it HERE. In my understanding it'll be mostly used by device manufacturers, releasing special devices for the Enterprise world for example. The best doc for multi-users I've found is THIS one, along with all referenced links there.