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)) {
|
if (isAmazonEnabled(ctx)) {
|
||||||
return "amzn://apps/android?p=";
|
return "amzn://apps/android?p=";
|
||||||
} else if (isGooglePlayEnabled(ctx)) {
|
} else if (isGooglePlayEnabled(ctx)) {
|
||||||
return "market://search?q=pname:";
|
return "market://details?id=";
|
||||||
}
|
}
|
||||||
return "https://osmand.net/apps?id=";
|
return "https://osmand.net/apps?id=";
|
||||||
}
|
}
|
||||||
|
|
|
@ -381,7 +381,7 @@ public class DownloadIndexesThread {
|
||||||
builder.setPositiveButton(R.string.button_upgrade_osmandplus, new DialogInterface.OnClickListener() {
|
builder.setPositiveButton(R.string.button_upgrade_osmandplus, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
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 {
|
try {
|
||||||
ctx.startActivity(intent);
|
ctx.startActivity(intent);
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
|
|
|
@ -236,7 +236,7 @@ public class MapillaryPlugin extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean installMapillary(OsmandApplication app) {
|
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) {
|
if (!success) {
|
||||||
success = execInstall(app, "https://play.google.com/store/apps/details?id=" + MAPILLARY_PACKAGE_ID);
|
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() {
|
view.findViewById(R.id.install_osmand_btn).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
boolean success = execOsmAndInstall("market://search?q=pname:");
|
boolean success = execOsmAndInstall("market://details?id=");
|
||||||
if (!success) {
|
if (!success) {
|
||||||
success = execOsmAndInstall("https://play.google.com/store/apps/details?id=");
|
success = execOsmAndInstall("https://play.google.com/store/apps/details?id=");
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class NauticalActivity extends Activity {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String appName = OSMAND_COMPONENT;
|
String appName = OSMAND_COMPONENT;
|
||||||
logEvent(NauticalActivity.this, "open_play_store_" + appName);
|
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 {
|
try {
|
||||||
//stopService(intent);
|
//stopService(intent);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class ParkingPluginActivity extends Activity {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String appName = OSMAND_COMPONENT;
|
String appName = OSMAND_COMPONENT;
|
||||||
logEvent(ParkingPluginActivity.this, "open_play_store_" + appName);
|
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 {
|
try {
|
||||||
//stopService(intent);
|
//stopService(intent);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|
|
@ -58,7 +58,7 @@ public class SRTMPluginActivity extends Activity {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String appName = OSMAND_COMPONENT;
|
String appName = OSMAND_COMPONENT;
|
||||||
logEvent(SRTMPluginActivity.this, "open_play_store_" + appName);
|
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 {
|
try {
|
||||||
//stopService(intent);
|
//stopService(intent);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class SkiMapsActivity extends Activity {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String appName = OSMAND_COMPONENT;
|
String appName = OSMAND_COMPONENT;
|
||||||
logEvent(SkiMapsActivity.this, "open_play_store_" + appName);
|
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 {
|
try {
|
||||||
//stopService(intent);
|
//stopService(intent);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|
Loading…
Reference in a new issue