From d03e2b1c6a7592b88f7c2c8de01f6978d5429e24 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sat, 11 May 2013 14:59:06 +0200 Subject: new: link to market place in about activity --- main/res/layout/about_activity.xml | 17 +++++++++++++++++ main/res/values/strings.xml | 1 + main/src/cgeo/geocaching/AboutActivity.java | 10 ++++++++++ 3 files changed, 28 insertions(+) diff --git a/main/res/layout/about_activity.xml b/main/res/layout/about_activity.xml index b0de7ea..3f4ca00 100644 --- a/main/res/layout/about_activity.xml +++ b/main/res/layout/about_activity.xml @@ -197,6 +197,23 @@ android:textColorLink="?text_color_link" android:textSize="14dip" /> + + diff --git a/main/res/values/strings.xml b/main/res/values/strings.xml index c17e243..5d0b15f 100644 --- a/main/res/values/strings.xml +++ b/main/res/values/strings.xml @@ -1061,6 +1061,7 @@ Facebook: c:geo page Twitter: @android_GC Manual: c:geo in a Nutshell + Android: c:geo on Google Play Should c:geo publish a new status on Twitter every time you log a cache? The following process allows c:geo to access Twitter - if agreed. A click on the \"authorize c:geo\" button will start the process. This process will open up a web browser with a Twitter page. Login on this page and allow c:geo to access your account. If this is accepted, Twitter will show up a numeric PIN code. This PIN must be pasted into c:geo and confirmed. That\'s all. 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); + } } -- cgit v1.1