1

How to add app download link from Play Store, in my Application.

Ex. I know the application package name as com.test.abc

I want to provide a link in my application so that when user click that link, the app with package name com.test.abc should get download from play store and install.

Sharanabasu Angadi
  • 4,304
  • 8
  • 43
  • 67

1 Answers1

2

You have to use the market:// protocol inside an Intent

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+theAPPName));
Atropo
  • 12,231
  • 6
  • 49
  • 62