diff --git a/astrid/res/values/strings-core.xml b/astrid/res/values/strings-core.xml
index 4142dc5a3..d0a173de1 100644
--- a/astrid/res/values/strings-core.xml
+++ b/astrid/res/values/strings-core.xml
@@ -638,6 +638,9 @@ Astrid is open-source and proudly maintained by Todoroo, Inc.
Support
+
+ Forums
+
diff --git a/astrid/res/xml/preferences.xml b/astrid/res/xml/preferences.xml
index a68dc503f..90dbd549a 100644
--- a/astrid/res/xml/preferences.xml
+++ b/astrid/res/xml/preferences.xml
@@ -6,6 +6,7 @@
+
diff --git a/astrid/src/com/todoroo/astrid/activity/EditPreferences.java b/astrid/src/com/todoroo/astrid/activity/EditPreferences.java
index 92fc77d27..472067224 100644
--- a/astrid/src/com/todoroo/astrid/activity/EditPreferences.java
+++ b/astrid/src/com/todoroo/astrid/activity/EditPreferences.java
@@ -18,6 +18,7 @@ import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.ResolveInfo;
import android.content.res.Resources;
+import android.net.Uri;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.Preference;
@@ -66,8 +67,10 @@ import com.todoroo.astrid.widget.TasksWidget;
*/
public class EditPreferences extends TodorooPreferenceActivity {
- private static final int APPEARANCE_PREFERENCE = 3;
- private static final int POWER_PACK_PREFERENCE = 4;
+ private static final String SUPPORT_URL = "http://blog.astrid.com/topics/support/android"; //$NON-NLS-1$
+
+ private static final int APPEARANCE_PREFERENCE = 4;
+ private static final int POWER_PACK_PREFERENCE = 5;
private static final int REQUEST_CODE_SYNC = 0;
@@ -132,7 +135,16 @@ public class EditPreferences extends TodorooPreferenceActivity {
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference p) {
- showHelp();
+ showSupport();
+ return true;
+ }
+ });
+
+ preference = screen.findPreference(getString(R.string.p_forums));
+ preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
+ @Override
+ public boolean onPreferenceClick(Preference p) {
+ showForums();
return true;
}
});
@@ -164,7 +176,12 @@ public class EditPreferences extends TodorooPreferenceActivity {
About.showAbout(this, version);
}
- private void showHelp() {
+ private void showSupport() {
+ Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(SUPPORT_URL));
+ startActivity(intent);
+ }
+
+ private void showForums() {
StatisticsService.reportEvent(StatisticsConstants.TLA_MENU_HELP);
Intent intent = new Intent(this, NewFeedbackSpringboardActivity.class);
startActivity(intent);