Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get what App's link going to be in PlayStore before uploading?

I want to add share link in my app including the downloading link of android play. But since my app is not launched on PlayStore, I don't have download link currently. How can I include download link now?

like image 779
ywj7931 Avatar asked Oct 23 '25 21:10

ywj7931


2 Answers

According to google support, the url for your app is/will be

https://play.google.com/store/apps/details?id=package_name

For example, if your package name is com.mypackagename.myapplication, when you publish this app your url will be:

https://play.google.com/store/apps/details?id=com.mypackagename.myapplication


Here is a practical example: google chrome app url, see the url in your browser

like image 86
Allexandre Vieira Avatar answered Oct 25 '25 13:10

Allexandre Vieira


This should help you.

final String appPackageName = getPackageName(); // this is your playstore url id parameter
    try {
        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName)));
    } catch (android.content.ActivityNotFoundException anfe) {
        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName)));
    }
like image 38
Mann Avatar answered Oct 25 '25 13:10

Mann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!