1

I want to Distribute my App to the App store but i want to add a Share button with a Link, so that when a user clicks the link, it should open the App in the App store...

This is the Version 1.0 of my App.

How can i get a link for my App before it is completely visible to users???

Lotww
  • 11
  • 2
  • 1
    `http://play.google.com/store/apps/details?id=YOUR_PACKAGE_NAME` (take the package name from the manifest) (check the docs https://developer.android.com/distribute/marketing-tools/linking-to-google-play) – Mehdi Jul 02 '18 at 17:37
  • Possible duplicate of [How to open the Google Play Store directly from my Android application?](https://stackoverflow.com/questions/11753000/how-to-open-the-google-play-store-directly-from-my-android-application) – Eury Pérez Beltré Jul 02 '18 at 17:39

3 Answers3

1

Class this code on button click.

    try {
        Intent i = new Intent(Intent.ACTION_SEND);
        i.setType("text/plain");
        i.putExtra(Intent.EXTRA_SUBJECT, "Your Subject");
        String sAux = "\nLet me recommend you this application\n\n";
        sAux = sAux + "https://play.google.com/store/apps/details?id=com.demo.app \n\n"; // here define package name of you app
        i.putExtra(Intent.EXTRA_TEXT, sAux);
        startActivity(Intent.createChooser(i, "choose one"));
    } catch (Exception e) {
        Log.e(">>>", "Error: " + e);
    }
JSharma
  • 123
  • 7
1

Your app has a package name (also called an application id). For example, for Gmail it is com.google.android.gm.

As described at the Marketing Guidelines for Google Play the link is always http://play.google.com/store/apps/details?id=<package_name> ie for gmail it would be http://play.google.com/store/apps/details?id=com.google.android.gm

Nick Fortescue
  • 12,924
  • 1
  • 29
  • 37
0

You need to upload your app in play store in "Closed Beta". Details are here.

Once you've created your beta, you will see in "App Releases" --> "Beta" --> "Manage" a place where the opt-in URL in shown.

You can share the opt-in url and your users will be directed to a page explaining what it means to become a beta tester and it will also have a link to your beta version of the app.

Lefteris
  • 843
  • 1
  • 8
  • 28
  • Lefteris. Thanks But... what i really am asking is to get only the Link which will be used on Button click. – Lotww Jul 02 '18 at 17:53
  • I understand that you want the link to work ** before your app is completely visible to users **. In this case it will need to be a testing version (i.e. open/closed beta) and you need to do what I mentioned above. You can use what Mehdi B shared, in order to distribute it before Play Store has been updated with your app, but once it is updated (after a few hours from publishing) it will be visible to everyone. – Lefteris Jul 02 '18 at 18:04
  • Thanks Lefteris... i have understood now. But will i have to release the beta when i get the Link? or i will have to upload another Apk in the Production Release? – Lotww Jul 02 '18 at 22:23