about: added homepage button

http_proxy_broken
Georg Lukas 2010-06-16 02:05:27 +02:00
rodzic 85ec9e1a51
commit 9dfb374096
10 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -25,6 +25,7 @@
<string name="ad_title">Om APRSdroid v%s</string>
<string name="ad_text">Copyright © 2009-2010 Georg Lukas (DO1GL)\n http://aprsdroid.org/ \n\n APRS® er et registreret varemærke af Bob Bruninga (WB4APR) \n\n Dette program er gratis software; Du må redistribuerer det , eller modificerer det, ifølge reglerne for GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. \n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. \n\n You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. \n\n http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</string>
<string name="ad_trans">\n\nTranslation:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">Om...</string>

Wyświetl plik

@ -37,6 +37,7 @@ Sie sollten ein Exemplar der GNU General Public License zusammen mit diesem Prog
\n\n
http://www.gnu.de/documents/gpl-2.0.de.html</string>
<string name="ad_trans">\n\nÜbersetzung:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">Über...</string>

Wyświetl plik

@ -47,6 +47,7 @@
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
</string>
<string name="ad_trans">\n\nTranslation:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">About</string>

Wyświetl plik

@ -45,6 +45,7 @@
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
</string>
<string name="ad_trans">\n\nTranslation:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">ソフトウェア情報</string>

Wyświetl plik

@ -25,6 +25,7 @@
<string name="ad_title">Om APRSdroid v%s</string>
<string name="ad_text">Copyright © 2009-2010 Georg Lukas (DO1GL)\n http://aprsdroid.org/ \n\n APRS® is a registered trademark of Bob Bruninga (WB4APR) \n\n This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. \n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. \n\n You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. \n\n http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</string>
<string name="ad_trans">\n\nTranslation:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">Om</string>

Wyświetl plik

@ -45,6 +45,7 @@
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
</string>
<string name="ad_trans">\n\nVertaling:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">Meer info</string>

Wyświetl plik

@ -45,6 +45,7 @@
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
</string>
<string name="ad_trans">\n\nTranslation:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">O programie</string>

Wyświetl plik

@ -45,6 +45,7 @@
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
</string>
<string name="ad_trans">\n\nTranslation:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">Hakkında</string>

Wyświetl plik

@ -47,6 +47,7 @@
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
</string>
<string name="ad_trans">\n\nTranslation:</string>
<string name="ad_homepage">Home Page</string>
<!-- options menu -->
<string name="about">About</string>

Wyświetl plik

@ -5,6 +5,7 @@ import _root_.android.app.AlertDialog
import _root_.android.content._
import _root_.android.content.pm.PackageInfo;
import _root_.android.location._
import _root_.android.net.Uri
import _root_.android.os.Bundle
import _root_.android.preference.PreferenceManager
import _root_.java.text.SimpleDateFormat
@ -133,9 +134,17 @@ class APRSdroid extends Activity with OnClickListener
.setMessage(getString(R.string.ad_text) + translators)
.setIcon(android.R.drawable.ic_dialog_info)
.setPositiveButton(android.R.string.ok, null)
.setNeutralButton(R.string.ad_homepage, new HomePageOpener())
.create.show
}
class HomePageOpener extends DialogInterface.OnClickListener {
override def onClick(d : DialogInterface, which : Int) {
startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse("http://aprsdroid.org/")))
}
}
override def onOptionsItemSelected(mi : MenuItem) : Boolean = {
mi.getItemId match {
case R.id.preferences =>