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,074
  • 8
  • 41
  • 64

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
  • 11,652
  • 4
  • 45
  • 58