blob: b7a14ff2fd67d1c4fdc357f653a0d7b8b831f1f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
package cgeo.geocaching;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.utils.Version;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.TextView;
public class AboutActivity extends AbstractActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme();
setContentView(R.layout.about);
setTitle(res.getString(R.string.about));
((TextView) findViewById(R.id.about_version_string)).setText(Version.getVersionName(this));
((TextView) findViewById(R.id.contributors)).setMovementMethod(LinkMovementMethod.getInstance());
((TextView) findViewById(R.id.changelog)).setMovementMethod(LinkMovementMethod.getInstance());
}
/**
* @param view
* unused here but needed since this method is referenced from XML layout
*/
public void donate(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FMLNN8GXZKJEE")));
}
/**
* @param view
* unused here but needed since this method is referenced from XML layout
*/
public void support(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("mailto:support@cgeo.org")));
}
/**
* @param view
* unused here but needed since this method is referenced from XML layout
*/
public void website(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 facebook(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/pages/cgeo/297269860090")));
}
/**
* @param view
* unused here but needed since this method is referenced from XML layout
*/
public void twitter(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://twitter.com/android_gc")));
}
/**
* @param view
* unused here but needed since this method is referenced from XML layout
*/
public void nutshellmanual(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.cgeo.org/")));
}
}
|