Change search to page in google play
This commit is contained in:
parent
8b5de4a5ee
commit
95b712620e
8 changed files with 8 additions and 8 deletions
|
@ -31,7 +31,7 @@ public class Version {
|
|||
if (isAmazonEnabled(ctx)) {
|
||||
return "amzn://apps/android?p=";
|
||||
} else if (isGooglePlayEnabled(ctx)) {
|
||||
return "market://search?q=pname:";
|
||||
return "market://details?id=";
|
||||
}
|
||||
return "https://osmand.net/apps?id=";
|
||||
}
|
||||
|
|
|
@ -381,7 +381,7 @@ public class DownloadIndexesThread {
|
|||
builder.setPositiveButton(R.string.button_upgrade_osmandplus, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:net.osmand.plus"));
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=net.osmand.plus"));
|
||||
try {
|
||||
ctx.startActivity(intent);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
|
|
|
@ -236,7 +236,7 @@ public class MapillaryPlugin extends OsmandPlugin {
|
|||
}
|
||||
|
||||
public static boolean installMapillary(OsmandApplication app) {
|
||||
boolean success = execInstall(app, "market://search?q=pname:" + MAPILLARY_PACKAGE_ID);
|
||||
boolean success = execInstall(app, "market://details?id=" + MAPILLARY_PACKAGE_ID);
|
||||
if (!success) {
|
||||
success = execInstall(app, "https://play.google.com/store/apps/details?id=" + MAPILLARY_PACKAGE_ID);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ public class InstallOsmandAppDialog extends AppCompatDialogFragment {
|
|||
view.findViewById(R.id.install_osmand_btn).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
boolean success = execOsmAndInstall("market://search?q=pname:");
|
||||
boolean success = execOsmAndInstall("market://details?id=");
|
||||
if (!success) {
|
||||
success = execOsmAndInstall("https://play.google.com/store/apps/details?id=");
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ public class NauticalActivity extends Activity {
|
|||
public void onClick(View v) {
|
||||
String appName = OSMAND_COMPONENT;
|
||||
logEvent(NauticalActivity.this, "open_play_store_" + appName);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + appName));
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appName));
|
||||
try {
|
||||
//stopService(intent);
|
||||
startActivity(intent);
|
||||
|
|
|
@ -56,7 +56,7 @@ public class ParkingPluginActivity extends Activity {
|
|||
public void onClick(View v) {
|
||||
String appName = OSMAND_COMPONENT;
|
||||
logEvent(ParkingPluginActivity.this, "open_play_store_" + appName);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + appName));
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appName));
|
||||
try {
|
||||
//stopService(intent);
|
||||
startActivity(intent);
|
||||
|
|
|
@ -58,7 +58,7 @@ public class SRTMPluginActivity extends Activity {
|
|||
public void onClick(View v) {
|
||||
String appName = OSMAND_COMPONENT;
|
||||
logEvent(SRTMPluginActivity.this, "open_play_store_" + appName);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + appName));
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appName));
|
||||
try {
|
||||
//stopService(intent);
|
||||
startActivity(intent);
|
||||
|
|
|
@ -59,7 +59,7 @@ public class SkiMapsActivity extends Activity {
|
|||
public void onClick(View v) {
|
||||
String appName = OSMAND_COMPONENT;
|
||||
logEvent(SkiMapsActivity.this, "open_play_store_" + appName);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + appName));
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appName));
|
||||
try {
|
||||
//stopService(intent);
|
||||
startActivity(intent);
|
||||
|
|
Loading…
Reference in a new issue