title: Restricting the sharing of android application apk
body: <p>I am new to android. I have a application to make where in i have to restrict the application's .apk file getting shared by the user to the other phone android phone holders. </p>
  
  <p>Its like if i keep my .apk file in my own website then i want that the user can download the .apk from my website the cannot share the same .apk with some other person. I want to restrict the sharing of the apk to multiple phones. Everytime a user wants to install the app he/she has to install if from the play or through my website but the .apk shared cannot to installed.</p>
  
  <p>Also i wanted to ask if we can distinguish whether the app is distributed and installed or installed from the play.</p>
  
  <p>So can you please tell me some way out for doing this? </p>
  
  <p>Thanks in advance</p>