From d19282f8ce9d4256875e37358eda3ee19527d1f6 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Thu, 29 Apr 2010 04:08:34 +0200 Subject: Improve "about" (and provide link to my programs page). --- src/org/madore/android/unicodeMap/UnicodeMapActivity.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/org/madore') diff --git a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java index b0c1948..8e93e36 100644 --- a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java +++ b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java @@ -11,6 +11,7 @@ import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; +import android.net.Uri; import android.view.View; import android.view.ViewGroup; import android.view.Window; @@ -504,12 +505,23 @@ public final class UnicodeMapActivity extends ListActivity { dialog.setOwnerActivity(this); dialog.setContentView(R.layout.about_layout); dialog.setCancelable(true); - final Button btn = (Button) dialog.findViewById(R.id.aboutOk); + Button btn; + btn = (Button) dialog.findViewById(R.id.aboutOk); btn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { dialog.dismiss(); } }); + btn = (Button) dialog.findViewById(R.id.aboutMore); + btn.setOnClickListener(new View.OnClickListener() { + public void onClick(View view) { + dialog.dismiss(); + Intent intent + = new Intent(Intent.ACTION_VIEW, + Uri.parse("http://www.madore.org/~david/programs/#prog_unicodeMap")); + startActivity(intent); + } + }); dialog.show(); } -- cgit v1.2.3