I have read thread in the below link. But this is too old and many said in various possiblities. How to get application package name or UID which is trying to bind my service from onBind function?
I have altered the question according to my need. I have a bound service in an application and two clients will bind to my service using bindservice. when applications are tried to bind this service I want to know which application is trying to bind my service in onBind function?
Is there any better possible ways in latest Android version to get the application name or UID which is trying to bind my service in onBind function?