1

I want to make my android app apk to be install only once and it should not run on other device if it is copied from first device.Is it possible to do this in android? Thanks in advance.

SwapnilD
  • 135
  • 1
  • 13

4 Answers4

2

No, it is not possible. Apps can be installed and removed as many times the users want them to. Also our code comes into control only after our application gets installed. Hence we cannot determine whether we are getting installed or removed.

Royston Pinto
  • 6,573
  • 2
  • 27
  • 46
1

You don't have any way to do that if you want your user to be able to install the application

A possible workaround would be to test the DeviceID, and allow the app to proceed only if the DeviceID has been authorized.

Obviously you would have to manage this in your code, and that could become quite cumbersome if you need to authorize numerous devices. Plus I am not sure every device has a DeviceID

see Is there a unique Android device ID? for more information about this

and even take a look at licensing

Community
  • 1
  • 1
Kiran
  • 3,078
  • 5
  • 22
  • 38
0

Its not possible in android ,By using application signature you can't install same signature app if a same signature app is already there.but you can't restrict it to getting installed in other devices.

Abhijit Chakra
  • 3,097
  • 34
  • 64
0

Just think about it. The application doesn't know whether it is installed already or not.

If you are using an web based application, then assign a value to the database after the installation. (This value should only be known by the device inserting the value at database)

So when your application open next time on another device check the value and prohibit the user. This is the way you can block it.

Linga
  • 10,077
  • 9
  • 48
  • 97