0

任何人都可以知道如何在 android Studio 中生成 AppUrl 。我的应用程序处于开发阶段,所以我没有 PlayStore 应用程序 url。有谁知道那个的替代品??

  • 注意-它不是在 playstore 上上传的,它处于开发阶段,所以我没有 playstore appurl。

  • 在将 appurl 上传到游戏商店之前,有什么方法可以实现或获取 appurl ???

  • 我想要这样的东西https://developer.android.com/studio/write/app-link-indexing。但我不知道如何实现它。

较早的答复是可观的

4

2 回答 2

0

您的应用网址将是 https://play.google.com/store/apps/details?id="your app package name"

于 2018-09-06T07:51:50.317 回答
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())));
        }
于 2018-09-06T08:42:15.997 回答