I have a service in an application, and I can reach this service from different applications. And when applications are tried to bind this service I want to know which appli
You can't do this.
onBind() is called from the Android "lifecycle manager" (making up a helpful name), and will only be called once for each Intent (so it can learn which Binder should be returned for that Intent).
The calls to your service then come in over that Binder, and you can do Binder.getCallingUid() in any one of those methods.