0

Can any one know how to generate AppUrl in android Studio . My application is in development phase , so I don't have PlayStore app url . Anyone know the alternative of that ??

  • Note- It is not upload on playstore , it is in developing phase so i dont have playstore appurl .

  • Is any way to achieve or get appurl before uploading it to play store ???

  • I want something like this https://developer.android.com/studio/write/app-link-indexing . But i am not getting how to achieve it .

Earlier Reply is appreciable

InsaneCat
  • 2,115
  • 5
  • 21
  • 40
NICK
  • 11
  • 1
  • 5

2 Answers2

0

Your app url will be https://play.google.com/store/apps/details?id="your app package name"

Bartek Lipinski
  • 30,698
  • 10
  • 94
  • 132
Kunu
  • 5,078
  • 6
  • 33
  • 61
0
 Uri uri = Uri.parse("market://details?id=" + getApplication().getPackageName());
        Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
        // To count with Play market backstack, After pressing back button,
        // to taken back to our application, we need to add following flags to intent.
        goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |
                Intent.FLAG_ACTIVITY_NEW_DOCUMENT |
                Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
        try {
            startActivity(goToMarket);
        } catch (ActivityNotFoundException e) {
            startActivity(new Intent(Intent.ACTION_VIEW,
                    Uri.parse("http://play.google.com/store/apps/details?id=" + getApplication().getPackageName())));
        }
Kishan Viramgama
  • 893
  • 1
  • 11
  • 23