Puneetr90
Puneetr90

Reputation: 199

Dont let the user Install an app if some other app is already on that device

Here is what I am trying to do. I want only those users to install my app with package name as com.instance.partyhard who doesnt have already installed an app with package name as com.example.abc. FYI both are my apps but I dont want users to install both of my apps. Is there any way that I can do this?

Upvotes: 0

Views: 69

Answers (1)

Simulant
Simulant

Reputation: 20102

At Installation Time you cannot check which Apps are already installed. This would be a privacy lag an security problem.

You could check for installed apps on the startup of your app and display a note (or open an Intent to start the other app) to inform the user to use the other app.

Upvotes: 1

Related Questions