评价我的android应用程序
我想在我的Android应用程序中创建一个弹出窗口,提供给去市场投票的用户。情况是,要做到这一点,我实际上需要“id”play store将为我的应用程序提供的信息。。。但是如果我还没有上传,我怎么知道现在我正在开发它呢 有什么想法吗?谢谢 Google Play不会为应用程序“分配”随机ID。id是您选择的应用程序的唯一程序包名称,因此您将知道它 例如: 您的应用程序将是: 这将是您在应用程序的评价我的android应用程序,android,google-play,publishing,Android,Google Play,Publishing,我想在我的Android应用程序中创建一个弹出窗口,提供给去市场投票的用户。情况是,要做到这一点,我实际上需要“id”play store将为我的应用程序提供的信息。。。但是如果我还没有上传,我怎么知道现在我正在开发它呢 有什么想法吗?谢谢 Google Play不会为应用程序“分配”随机ID。id是您选择的应用程序的唯一程序包名称,因此您将知道它 例如: 您的应用程序将是: 这将是您在应用程序的manifest.xml中定义的包。Google Play不会为应用程序“分配”随机ID。id是
manifest.xml
中定义的包。Google Play不会为应用程序“分配”随机ID。id是您选择的应用程序的唯一程序包名称,因此您将知道它
Intent intent = new Intent(Intent.ACTION_VIEW);
//Try Google play
intent.setData(Uri.parse("market://details?id=[package]"));
if (MyStartActivity(intent) == false) {
//Market (Google play) app seems not installed, let's try to open a webbrowser
intent.setData(Uri.parse("https://play.google.com/store/apps/details?[package]"));
if (MyStartActivity(intent) == false) {
//Well if this also fails, we have run out of options, inform the user.
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show();
}
}
例如:
您的应用程序将是:
这将是您在应用程序的manifest.xml
中定义的包。Google Play不会为应用程序“分配”随机ID。id是您选择的应用程序的唯一程序包名称,因此您将知道它
Intent intent = new Intent(Intent.ACTION_VIEW);
//Try Google play
intent.setData(Uri.parse("market://details?id=[package]"));
if (MyStartActivity(intent) == false) {
//Market (Google play) app seems not installed, let's try to open a webbrowser
intent.setData(Uri.parse("https://play.google.com/store/apps/details?[package]"));
if (MyStartActivity(intent) == false) {
//Well if this also fails, we have run out of options, inform the user.
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show();
}
}
例如:
您的应用程序将是:
这将是您在应用程序的manifest.xml
中定义的包。Google Play不会为应用程序“分配”随机ID。id是您选择的应用程序的唯一程序包名称,因此您将知道它
Intent intent = new Intent(Intent.ACTION_VIEW);
//Try Google play
intent.setData(Uri.parse("market://details?id=[package]"));
if (MyStartActivity(intent) == false) {
//Market (Google play) app seems not installed, let's try to open a webbrowser
intent.setData(Uri.parse("https://play.google.com/store/apps/details?[package]"));
if (MyStartActivity(intent) == false) {
//Well if this also fails, we have run out of options, inform the user.
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show();
}
}
例如:
您的应用程序将是:
这将是您在应用程序的
manifest.xml
中定义的包。使用包名,因为Google Play将根据您应用程序的包名生成播放商店链接
Intent intent = new Intent(Intent.ACTION_VIEW);
//Try Google play
intent.setData(Uri.parse("market://details?id=[package]"));
if (MyStartActivity(intent) == false) {
//Market (Google play) app seems not installed, let's try to open a webbrowser
intent.setData(Uri.parse("https://play.google.com/store/apps/details?[package]"));
if (MyStartActivity(intent) == false) {
//Well if this also fails, we have run out of options, inform the user.
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show();
}
}
来源:使用软件包名称,因为Google Play将根据应用程序的软件包名称生成一个Play Store链接
Intent intent = new Intent(Intent.ACTION_VIEW);
//Try Google play
intent.setData(Uri.parse("market://details?id=[package]"));
if (MyStartActivity(intent) == false) {
//Market (Google play) app seems not installed, let's try to open a webbrowser
intent.setData(Uri.parse("https://play.google.com/store/apps/details?[package]"));
if (MyStartActivity(intent) == false) {
//Well if this also fails, we have run out of options, inform the user.
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show();
}
}
来源:使用软件包名称,因为Google Play将根据应用程序的软件包名称生成一个Play Store链接
Intent intent = new Intent(Intent.ACTION_VIEW);
//Try Google play
intent.setData(Uri.parse("market://details?id=[package]"));
if (MyStartActivity(intent) == false) {
//Market (Google play) app seems not installed, let's try to open a webbrowser
intent.setData(Uri.parse("https://play.google.com/store/apps/details?[package]"));
if (MyStartActivity(intent) == false) {
//Well if this also fails, we have run out of options, inform the user.
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show();
}
}
来源:使用软件包名称,因为Google Play将根据应用程序的软件包名称生成一个Play Store链接
Intent intent = new Intent(Intent.ACTION_VIEW);
//Try Google play
intent.setData(Uri.parse("market://details?id=[package]"));
if (MyStartActivity(intent) == false) {
//Market (Google play) app seems not installed, let's try to open a webbrowser
intent.setData(Uri.parse("https://play.google.com/store/apps/details?[package]"));
if (MyStartActivity(intent) == false) {
//Well if this also fails, we have run out of options, inform the user.
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show();
}
}
资料来源: