commit 4759d9f14326a7ce5dae67a4c9779d4adf9ea548
Author: Amogh Pradeep <[email protected]>
Date: Sat May 24 03:15:33 2014 +0530
implemented button click function for the story maker button, also url
added in strings, change to liking at review
---
res/values/strings.xml | 1 +
src/org/torproject/android/wizard/TipsAndTricks.java | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 52905ff..28d74f8 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -80,6 +80,7 @@
<string
name="proxymob_setup_url">https://guardianproject.info/releases/proxymob-latest.xpi</string>
<string name="wizard_tips_twitter">Set Twitter proxy to host \"localhost\"
and port 8118</string>
<string name="wizard_tips_story_maker">StoryMaker - Make a story and leave
it to tor for security!</string>
+ <string
name="story_maker_url">https://play.google.com/store/apps/details?id=info.guardianproject.mrapp</string>
<string
name="twitter_setup_url">https://guardianproject.info/2012/05/02/orbot-your-twitter/</string>
<string name="wizard_proxy_help_info">Proxy Settings</string>
<string name="wizard_proxy_help_msg">If the Android app you are using can
support the use of an HTTP or SOCKS proxy, then you can configure it to connect
to Orbot and use Tor.\n\n\n The host settings is 127.0.0.1 or \"localhost\".
For HTTP, the port setting is 8118. For SOCKS, the proxy is 9050. You should
use SOCKS4A or SOCKS5 if possible.\n \n\n\n You can learn more about
proxying on Android via the FAQ at: http://tinyurl.com/proxyandroid\n
</string>
diff --git a/src/org/torproject/android/wizard/TipsAndTricks.java
b/src/org/torproject/android/wizard/TipsAndTricks.java
index 5d0872c..300730b 100644
--- a/src/org/torproject/android/wizard/TipsAndTricks.java
+++ b/src/org/torproject/android/wizard/TipsAndTricks.java
@@ -127,6 +127,18 @@ public class TipsAndTricks extends Activity implements
TorConstants {
}
});
+ btnLink = (Button)findViewById(R.id.WizardRootButtonInstallStoryMaker);
+
+ btnLink.setOnClickListener(new OnClickListener() {
+
+ public void onClick(View view) {
+
+ String url =
getString(R.string.story_maker_url);
+ startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse(url)));
+
+ }
+ });
+
/**
btnLink = (Button)findViewById(R.id.WizardRootButtonGooglePlay);
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits