aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/AboutActivity.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-05-11 14:59:06 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-05-11 14:59:06 +0200
commitd03e2b1c6a7592b88f7c2c8de01f6978d5429e24 (patch)
treea9b79c45eb2738c0b2e2eb1925b748c2fea84995 /main/src/cgeo/geocaching/AboutActivity.java
parent4e6111aacd050a4c2f3aabb8ef6c851f1d13728b (diff)
downloadcgeo-d03e2b1c6a7592b88f7c2c8de01f6978d5429e24.zip
cgeo-d03e2b1c6a7592b88f7c2c8de01f6978d5429e24.tar.gz
cgeo-d03e2b1c6a7592b88f7c2c8de01f6978d5429e24.tar.bz2
new: link to market place in about activity
Diffstat (limited to 'main/src/cgeo/geocaching/AboutActivity.java')
-rw-r--r--main/src/cgeo/geocaching/AboutActivity.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/AboutActivity.java b/main/src/cgeo/geocaching/AboutActivity.java
index d14df7b..83f25e9 100644
--- a/main/src/cgeo/geocaching/AboutActivity.java
+++ b/main/src/cgeo/geocaching/AboutActivity.java
@@ -73,4 +73,14 @@ public class AboutActivity extends AbstractActivity {
public void nutshellmanual(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.cgeo.org/")));
}
+
+ /**
+ * @param view
+ * unused here but needed since this method is referenced from XML layout
+ */
+ public void market(View view) {
+ Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + getPackageName()));
+ marketIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
+ startActivity(marketIntent);
+ }
}