From 90a3c25c58d9d7dc175d44d0634a414b031aba3c Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Sat, 13 Mar 2010 17:56:10 +0100 Subject: [PATCH] Added AboutActivity --- AndroidManifest.xml | 25 +++++++++ res/layout/about.xml | 68 +++++++++++++++++++++++++ res/values/strings.xml | 12 +++++ src/org/yaaic/view/AboutActivity.java | 44 ++++++++++++++++ src/org/yaaic/view/ServersActivity.java | 5 +- 5 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 res/layout/about.xml create mode 100644 src/org/yaaic/view/AboutActivity.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 1e2374c..f7f4520 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,4 +1,24 @@ + + + diff --git a/res/layout/about.xml b/res/layout/about.xml new file mode 100644 index 0000000..e629a41 --- /dev/null +++ b/res/layout/about.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 5918e1d..a283b42 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,8 +1,13 @@ Yaaic + Yet Another Android IRC Client + 0.1 (BETA) + http://www.yaaic.org + (C) 2009-2010 Sebastian Kaspari Add server + About Add new server Title @@ -22,4 +27,11 @@ Connect Disconnect Delete + + About + + + Yaaic 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 3 of the License, or (at your option) any later version. + Yaaic 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. + diff --git a/src/org/yaaic/view/AboutActivity.java b/src/org/yaaic/view/AboutActivity.java new file mode 100644 index 0000000..f23f130 --- /dev/null +++ b/src/org/yaaic/view/AboutActivity.java @@ -0,0 +1,44 @@ +/* +Yaaic - Yet Another Android IRC Client + +Copyright 2009-2010 Sebastian Kaspari + +This file is part of Yaaic. + +Yaaic 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 3 of the License, or +(at your option) any later version. + +Yaaic 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. + +You should have received a copy of the GNU General Public License +along with Yaaic. If not, see . +*/ +package org.yaaic.view; + +import org.yaaic.R; + +import android.app.Activity; +import android.os.Bundle; + +/** + * About activity + * + * @author Sebastian Kaspari + */ +public class AboutActivity extends Activity +{ + /** + * On create + */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + setContentView(R.layout.about); + } +} diff --git a/src/org/yaaic/view/ServersActivity.java b/src/org/yaaic/view/ServersActivity.java index 7c89885..3a729aa 100644 --- a/src/org/yaaic/view/ServersActivity.java +++ b/src/org/yaaic/view/ServersActivity.java @@ -191,7 +191,10 @@ public class ServersActivity extends ListActivity implements ServiceConnection, switch (item.getItemId()) { case R.id.add: startActivityForResult(new Intent(this, AddServerActivity.class), 0); - break; + break; + case R.id.about: + startActivity(new Intent(this, AboutActivity.class)); + break; } return true;