← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~johanmynhardt/openlp/android into lp:openlp

 

Johan Mynhardt has proposed merging lp:~johanmynhardt/openlp/android into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~johanmynhardt/openlp/android/+merge/91983

Cleaned up the menu code, extracting the menu actions to a DefaultActivity and let the activities that use the menu, extend that.
Update copyright, author
-- 
https://code.launchpad.net/~johanmynhardt/openlp/android/+merge/91983
Your team OpenLP Core is requested to review the proposed merge of lp:~johanmynhardt/openlp/android into lp:openlp.
=== added file '.bzrignore'
--- .bzrignore	1970-01-01 00:00:00 +0000
+++ .bzrignore	2012-02-08 06:21:19 +0000
@@ -0,0 +1,13 @@
+bin/
+assets/
+gen/
+.idea
+out
+Openlp-android.iml
+Openlp-android-working.iml
+.classpath
+.settings
+Openlp-android-buildfilefix.iml
+build.xml
+local.properties
+build.properties

=== renamed file '.bzrignore' => '.bzrignore.moved'
=== added file '.classpath'
--- .classpath	1970-01-01 00:00:00 +0000
+++ .classpath	2012-02-08 06:21:19 +0000
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="gen"/>
+	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+	<classpathentry kind="output" path="bin/classes"/>
+</classpath>

=== added file '.project'
--- .project	1970-01-01 00:00:00 +0000
+++ .project	2012-02-08 06:21:19 +0000
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>OpenlpRemote</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

=== added file 'AndroidManifest.xml'
--- AndroidManifest.xml	1970-01-01 00:00:00 +0000
+++ AndroidManifest.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest
+        xmlns:android="http://schemas.android.com/apk/res/android";
+		android:installLocation="auto"
+        package="org.openlp.android"
+        android:versionCode="3"
+        android:versionName="0.4"
+        >
+    <uses-sdk android:minSdkVersion="8"/>
+    <uses-permission android:name="android.permission.INTERNET"/>
+
+    <application
+            android:icon="@drawable/openlp_logo"
+            android:label="@string/app_name">
+        <activity
+                android:name=".OpenLP"
+                android:label="@string/app_name">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN"/>
+                <category android:name="android.intent.category.LAUNCHER"/>
+            </intent-filter>
+        </activity>
+        <activity
+                android:name=".activity.SearchableActivity"
+                android:label="@string/searchResults">
+            <intent-filter>
+                <action android:name="android.intent.action.SEARCH"/>
+            </intent-filter>
+            <meta-data
+                    android:name="android.app.searchable"
+                    android:resource="@xml/searchable"/>
+        </activity>
+
+        <activity android:name=".activity.Misc"/>
+        <activity android:name=".activity.Preferences" android:label="@string/preferences"/>
+        <activity android:name=".activity.Slide"/>
+        <activity android:name=".activity.Service"/>
+        <activity android:name=".activity.Alert"/>
+        <activity android:name=".activity.StageView"/>                 
+        <meta-data
+                android:name="android.app.default_searchable"
+                android:value=".activity.SearchableActivity"/>
+    </application>
+</manifest>
\ No newline at end of file

=== added file 'OpenLP.apk'
Binary files OpenLP.apk	1970-01-01 00:00:00 +0000 and OpenLP.apk	2012-02-08 06:21:19 +0000 differ
=== added directory 'assets'
=== added directory 'libs'
=== added file 'proguard.cfg'
--- proguard.cfg	1970-01-01 00:00:00 +0000
+++ proguard.cfg	2012-02-08 06:21:19 +0000
@@ -0,0 +1,36 @@
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+-keep public class com.android.vending.licensing.ILicensingService
+
+-keepclasseswithmembernames class * {
+    native <methods>;
+}
+
+-keepclasseswithmembernames class * {
+    public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembernames class * {
+    public <init>(android.content.Context, android.util.AttributeSet, int);
+}
+
+-keepclassmembers enum * {
+    public static **[] values();
+    public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+  public static final android.os.Parcelable$Creator *;
+}

=== added file 'project.properties'
--- project.properties	1970-01-01 00:00:00 +0000
+++ project.properties	2012-02-08 06:21:19 +0000
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-8

=== added directory 'res'
=== added directory 'res/drawable-hdpi'
=== added file 'res/drawable-hdpi/icon.png'
Binary files res/drawable-hdpi/icon.png	1970-01-01 00:00:00 +0000 and res/drawable-hdpi/icon.png	2012-02-08 06:21:19 +0000 differ
=== added file 'res/drawable-hdpi/openlp_logo.png'
Binary files res/drawable-hdpi/openlp_logo.png	1970-01-01 00:00:00 +0000 and res/drawable-hdpi/openlp_logo.png	2012-02-08 06:21:19 +0000 differ
=== added directory 'res/drawable-ldpi'
=== added file 'res/drawable-ldpi/icon.png'
Binary files res/drawable-ldpi/icon.png	1970-01-01 00:00:00 +0000 and res/drawable-ldpi/icon.png	2012-02-08 06:21:19 +0000 differ
=== added file 'res/drawable-ldpi/openlp_logo.png'
Binary files res/drawable-ldpi/openlp_logo.png	1970-01-01 00:00:00 +0000 and res/drawable-ldpi/openlp_logo.png	2012-02-08 06:21:19 +0000 differ
=== added directory 'res/drawable-mdpi'
=== added file 'res/drawable-mdpi/icon.png'
Binary files res/drawable-mdpi/icon.png	1970-01-01 00:00:00 +0000 and res/drawable-mdpi/icon.png	2012-02-08 06:21:19 +0000 differ
=== added file 'res/drawable-mdpi/openlp_logo.png'
Binary files res/drawable-mdpi/openlp_logo.png	1970-01-01 00:00:00 +0000 and res/drawable-mdpi/openlp_logo.png	2012-02-08 06:21:19 +0000 differ
=== added directory 'res/layout'
=== added file 'res/layout/alert.xml'
--- res/layout/alert.xml	1970-01-01 00:00:00 +0000
+++ res/layout/alert.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android";
+        android:orientation="vertical"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent">
+    <TextView
+            android:text="@string/alert"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"/>
+    <EditText
+            android:id="@+id/alert"
+            android:layout_height="wrap_content"
+            android:text=""
+            android:inputType="textShortMessage"
+            android:layout_width="fill_parent"
+            android:hint="@string/alertHint"/>
+    <Button android:text="@string/send"
+            android:id="@+id/send"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"/>
+</LinearLayout>

=== added file 'res/layout/group_child.xml'
--- res/layout/group_child.xml	1970-01-01 00:00:00 +0000
+++ res/layout/group_child.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,14 @@
+<LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android";
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal">
+    <TextView
+            android:id="@+id/groupChildText"
+            android:layout_height="wrap_content"
+            android:layout_width="fill_parent"
+            android:paddingLeft="20dip"
+            android:gravity="center_vertical"
+            android:minLines="3"
+            />
+</LinearLayout>
\ No newline at end of file

=== added file 'res/layout/group_parent.xml'
--- res/layout/group_parent.xml	1970-01-01 00:00:00 +0000
+++ res/layout/group_parent.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
+	android:layout_width="fill_parent" 
+	android:baselineAligned="false"
+	android:orientation="horizontal" 
+	android:layout_height="wrap_content">
+	<TextView android:id="@+id/groupParentText"
+		android:layout_height="wrap_content" 
+		android:paddingLeft="5dip"
+		android:minLines="3" 
+		android:focusable="false" 
+		android:gravity="center_vertical|right"
+		android:layout_width="fill_parent"
+		android:layout_weight="1" />
+	<TextView android:id="@+id/parentChildCount" 
+		android:width="40dip"
+		android:paddingRight="5dip" 
+		android:layout_width="fill_parent"
+		android:layout_weight="1" 
+		android:layout_height="wrap_content"
+		android:gravity="center_vertical|right" />
+</LinearLayout>
\ No newline at end of file

=== added file 'res/layout/main.xml'
--- res/layout/main.xml	1970-01-01 00:00:00 +0000
+++ res/layout/main.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TabHost xmlns:android="http://schemas.android.com/apk/res/android";
+         android:id="@android:id/tabhost"
+         android:layout_width="fill_parent"
+         android:layout_height="fill_parent">
+    <LinearLayout
+            android:orientation="vertical"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent"
+            android:padding="0dp">
+
+        <TabWidget
+            android:id="@android:id/tabs"
+            android:layout_width="fill_parent"
+            android:layout_height="45dp"
+            android:textColor="#000000"
+            android:textSize="18dp"
+            android:textStyle="bold"/>
+
+        <FrameLayout
+                android:id="@android:id/tabcontent"
+                android:layout_width="fill_parent"
+                android:layout_height="fill_parent"
+                android:padding="0dp"/>
+    </LinearLayout>
+</TabHost>
+

=== added file 'res/layout/misc.xml'
--- res/layout/misc.xml	1970-01-01 00:00:00 +0000
+++ res/layout/misc.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android";
+        android:orientation="vertical"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent">
+    <ToggleButton
+            android:id="@+id/toggleDisplayButton"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:textOn="@string/displayBlankOn"
+            android:textOff="@string/displayBlankOff"/>
+</LinearLayout>
+

=== added file 'res/layout/search.xml'
--- res/layout/search.xml	1970-01-01 00:00:00 +0000
+++ res/layout/search.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android";
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent"
+        android:orientation="vertical">
+    <TableLayout
+            android:id="@+id/tableLayout1"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent">
+        <ExpandableListView
+                android:layout_weight="1"
+                android:layout_height="wrap_content"
+                android:id="@+id/list"
+                android:layout_width="wrap_content"
+                />
+    </TableLayout>
+</LinearLayout>

=== added file 'res/layout/service.xml'
--- res/layout/service.xml	1970-01-01 00:00:00 +0000
+++ res/layout/service.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android";
+        android:layout_width="fill_parent"
+        android:baselineAligned="false"
+        android:orientation="vertical"
+        android:layout_height="fill_parent">
+    <TableLayout
+            android:id="@+id/tableLayout1"
+            android:layout_width="fill_parent"
+            android:layout_gravity="fill"
+            android:layout_height="fill_parent">
+        <ListView
+                android:layout_gravity="top"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:id="@+id/serviceList"
+                android:layout_width="fill_parent"/>
+        <LinearLayout
+                android:baselineAligned="false"
+                android:id="@+id/linearLayout1"
+                android:layout_width="fill_parent"
+                android:layout_gravity="fill"
+                android:layout_height="wrap_content"
+                android:layout_weight="0">
+            <Button
+                    android:text="@string/prev"
+                    android:layout_weight="1"
+                    android:id="@+id/prev"
+                    android:layout_height="wrap_content"
+                    android:layout_width="fill_parent"/>
+            <Button
+                    android:text="@string/next"
+                    android:layout_weight="1"
+                    android:id="@+id/next"
+                    android:layout_height="wrap_content"
+                    android:layout_width="fill_parent"/>
+        </LinearLayout>
+    </TableLayout>
+</LinearLayout>

=== added file 'res/layout/slide.xml'
--- res/layout/slide.xml	1970-01-01 00:00:00 +0000
+++ res/layout/slide.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android";
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent"
+        android:orientation="vertical">
+    <TableLayout
+            android:id="@+id/tableLayout1"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent">
+        <ListView
+                android:layout_weight="1"
+                android:layout_height="wrap_content"
+                android:id="@+id/list"
+                android:layout_width="wrap_content"/>
+        <LinearLayout
+                android:layout_height="wrap_content"
+                android:id="@+id/linearLayout1"
+                android:layout_width="fill_parent">
+            <Button
+                    android:text="@string/prev"
+                    android:layout_weight="1"
+                    android:id="@+id/prev"
+                    android:layout_height="wrap_content"
+                    android:layout_width="fill_parent"
+                    android:layout_gravity="center_vertical"/>
+            <Button
+                    android:text="@string/next"
+                    android:layout_weight="1"
+                    android:id="@+id/next"
+                    android:layout_height="wrap_content"
+                    android:layout_width="fill_parent"
+                    android:layout_gravity="center"/>
+        </LinearLayout>
+    </TableLayout>
+
+</LinearLayout>

=== added file 'res/layout/slide_list_item.xml'
--- res/layout/slide_list_item.xml	1970-01-01 00:00:00 +0000
+++ res/layout/slide_list_item.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout
+        xmlns:android="http://schemas.android.com/apk/res/android";
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent">
+    <TextView
+            android:id="@+id/rowItemMarker"
+            android:layout_width="wrap_content"
+            android:layout_height="fill_parent"
+            android:gravity="center"
+            android:textStyle="bold"
+            android:textColor="@color/white"
+            />
+    <TextView
+            android:id="@+id/rowItemText"
+            android:layout_width="wrap_content"
+            android:layout_height="fill_parent"
+            android:gravity="center_vertical"
+            android:minLines="2"
+            android:textSize="8pt"/>
+</LinearLayout>
\ No newline at end of file

=== added file 'res/layout/stageview.xml'
--- res/layout/stageview.xml	1970-01-01 00:00:00 +0000
+++ res/layout/stageview.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:baselineAligned="false"
+    android:orientation="vertical" >
+    <WebView
+        android:id="@+id/stageview"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent" />
+
+</LinearLayout>
\ No newline at end of file

=== added directory 'res/menu'
=== added file 'res/menu/menu.xml'
--- res/menu/menu.xml	1970-01-01 00:00:00 +0000
+++ res/menu/menu.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android";>
+    <item android:enabled="true" android:titleCondensed="@string/settings" android:title="@string/settings"
+          android:id="@+id/preferences"/>
+	<item
+		android:id="@+id/menuSearch"
+		android:enabled="true"
+		android:title="Search"
+		android:titleCondensed="Search"/>
+</menu>

=== added directory 'res/values'
=== added directory 'res/values-af'
=== added file 'res/values-af/strings.xml'
--- res/values-af/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-af/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Instellings</string>
+  <string name="preferences">Voorkeure</string>
+  <string name="exit">Uitgang</string>
+  <string name="prev">Vorige</string>
+  <string name="next">Volgende</string>
+  <string name="previousServiceItem">Vorige Item</string>
+  <string name="nextServiceItem">Volgende Item</string>
+  <string name="previousSlide">Vorige Skyfie</string>
+  <string name="nextSlide">Volgende Skyfie</string>
+  <string name="blank">Blanko</string>
+  <string name="unblank">Vertoon</string>
+  <string name="alert">Attent:</string>
+  <string name="alertHint">Vul attent boodskap in</string>
+  <string name="alertTextNull">Vul asseblief \'n boodskap in om te stuur.</string>
+  <string name="send">Stuur</string>
+  <string name="Slide">Skyfie</string>
+  <string name="slides">Skyfies</string>
+  <string name="Service">Diens</string>
+  <string name="misc">Verskeie</string>
+  <string name="preferenceCategoryTitleServer">Bediener</string>
+  <string name="url">Bediener</string>
+  <string name="urlHint">Gasheer naam of IP</string>
+  <string name="port">Poort</string>
+  <string name="enableCustomTimeouts">Bekragtig Aangepasde Tyd-uitlope</string>
+  <string name="displayType">Vertoning Blanko Tipe</string>
+  <string name="displayBlankType">Vertoning Blanko Tipe</string>
+  <string name="displayBlankSummary">Kies die gevraagde blanko tipe</string>
+  <string name="displayScreen">Skerm</string>
+  <string name="displayTheme">Tema</string>
+  <string name="displayDesktop">Hoofblad</string>
+  <string name="displayBlankOn">Herstel vertoon vorm</string>
+  <string name="displayBlankOff">Blanko skerm na</string>
+  <string name="customTimeoutsSummary">Tik om tyd-uitloop instellings te verander</string>
+  <string name="customTimeout">Aangepasde Tyd-uitlope</string>
+  <string name="socketTimeout">Sok Tyd-uitloop</string>
+  <string name="socketTimeoutSummary">Kies \'n waarde (millisekondes)</string>
+  <string name="connectionTimeout">Konneksie Tyd-uitloop</string>
+  <string name="connectionTimedout">Kenneksie tyd het uitgeloop</string>
+  <string name="connectionTimeoutSummary">Kies \'n waarde (millisekondes)</string>
+  <string name="save">Stoor</string>
+  <string name="unable">Nie in staat om blad te laai nie -</string>
+  <string name="fail">Konneksie het misluk</string>
+  <string name="jsonfail">JSON het misluk</string>
+  <string name="loading">Konnekteer...</string>
+  <string name="searching">Soek...</string>
+  <string name="loadingServiceItems">Laai Diens Items...</string>
+  <string name="loadingSlideItems">Laai Skyfie Items...</string>
+  <string name="loadingStatusInfo">Laai Status Inligting...</string>
+  <string name="searchHint">Soek OpenLP</string>
+  <string name="searchResults">Soek Resultate</string>
+  <string name="showingResults">Vertoon Resultate vir \'%s\'</string>
+</resources>

=== added directory 'res/values-cs'
=== added file 'res/values-cs/strings.xml'
--- res/values-cs/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-cs/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Nastavení</string>
+  <string name="preferences">Nastavení</string>
+  <string name="exit">Ukončit</string>
+  <string name="prev">Předchozí</string>
+  <string name="next">Další</string>
+  <string name="previousServiceItem">Předchozí položka</string>
+  <string name="nextServiceItem">Další položka</string>
+  <string name="previousSlide">Předchozí snímek</string>
+  <string name="nextSlide">Další snímek</string>
+  <string name="blank">Prázdný</string>
+  <string name="unblank">Neprázdný</string>
+  <string name="alert">Upozornění:</string>
+  <string name="alertHint">Zadat zprávu upozornění</string>
+  <string name="alertTextNull">Zadejte prosím zprávu k odeslání.</string>
+  <string name="send">Odeslat</string>
+  <string name="Slide">Snímek</string>
+  <string name="slides">Snímky</string>
+  <string name="Service">Služba</string>
+  <string name="misc">Různé</string>
+  <string name="preferenceCategoryTitleServer">Server</string>
+  <string name="url">Server</string>
+  <string name="urlHint">Jméno počítače nebo IP</string>
+  <string name="port">Port</string>
+  <string name="enableCustomTimeouts">Zapnout uživatelský časový limit</string>
+  <string name="displayType">Zobrazit prázdný typ</string>
+  <string name="displayBlankType">Zobrazit prázdný typ</string>
+  <string name="displayBlankSummary">Vybrat požadovaný prázdný typ</string>
+  <string name="displayScreen">Obrazovka</string>
+  <string name="displayTheme">Motiv</string>
+  <string name="displayDesktop">Pracovní plocha</string>
+  <string name="displayBlankOn">Obnovit zobrazení z</string>
+  <string name="displayBlankOff">Prázdné zobrazení na</string>
+  <string name="customTimeoutsSummary">Ověřit změny nastavení časového limitu</string>
+  <string name="customTimeout">Uživatelský časový limit</string>
+  <string name="socketTimeout">Časový limit socketu</string>
+  <string name="socketTimeoutSummary">Vybrat hodnotu (milisekundy)</string>
+  <string name="connectionTimeout">Časový limit spojení</string>
+  <string name="connectionTimedout">Spojení vypršelo</string>
+  <string name="connectionTimeoutSummary">Vybrat hodnotu (milisekundy)</string>
+  <string name="save">Uložit</string>
+  <string name="unable">Není možno načíst stránku -</string>
+  <string name="fail">Spojení selhalo</string>
+  <string name="jsonfail">JSON selhal</string>
+  <string name="loading">Připojuji se...</string>
+  <string name="searching">Hledám...</string>
+  <string name="loadingServiceItems">Načítám položky služby...</string>
+  <string name="loadingSlideItems">Načítám položky snímku...</string>
+  <string name="loadingStatusInfo">Načítám stavové info...</string>
+  <string name="searchHint">Hledat OpenLP</string>
+  <string name="searchResults">Výsledky hledání</string>
+  <string name="showingResults">Zobrazuji výsledky pro \'%s\'</string>
+</resources>

=== added directory 'res/values-de'
=== added file 'res/values-de/strings.xml'
--- res/values-de/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-de/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,50 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Einstellungen</string>
+  <string name="preferences">Voreinstellungen</string>
+  <string name="exit">Beenden</string>
+  <string name="prev">Zurück</string>
+  <string name="next">Vorwärts</string>
+  <string name="previousServiceItem">Vorheriges Element</string>
+  <string name="nextServiceItem">Nächstes Element</string>
+  <string name="previousSlide">Vorherige Folie</string>
+  <string name="nextSlide">Nächste Folie</string>
+  <string name="blank">Abdunkeln</string>
+  <string name="unblank">Aufhellen</string>
+  <string name="alert">Hinweis:</string>
+  <string name="alertHint">Alarm eingeben</string>
+  <string name="alertTextNull">Bitte geben Sie eine Nachricht ein, welche gesendet werden soll.</string>
+  <string name="send">Senden</string>
+  <string name="Slide">Folie</string>
+  <string name="slides">Folien</string>
+  <string name="Service">Ablauf</string>
+  <string name="misc">Verschiedenes</string>
+  <string name="preferenceCategoryTitleServer">Server</string>
+  <string name="url">Server</string>
+  <string name="urlHint">Hostname oder IP</string>
+  <string name="port">Port</string>
+  <string name="enableCustomTimeouts">Aktiviere eigene Time-outs</string>
+  <string name="displayType">Zeige Verdunklungstyp an</string>
+  <string name="displayBlankType">Zeige Verdunklungstyp an</string>
+  <string name="displayBlankSummary">Wähle den erforderlichen Verdunklungstyp</string>
+  <string name="displayScreen">Bildschirm</string>
+  <string name="displayTheme">Design</string>
+  <string name="displayDesktop">Arbeitsfläche</string>
+  <string name="socketTimeoutSummary">Wähle einen Wert (in Millisekunden)</string>
+  <string name="connectionTimeout">Verbindungzeit überschritten</string>
+  <string name="connectionTimedout">Verbindungszeit abgelaufen</string>
+  <string name="connectionTimeoutSummary">Wähle einen Wert (in Millisekunden)</string>
+  <string name="save">Speichern</string>
+  <string name="unable">Seite kann nicht geladen werden -</string>
+  <string name="fail">Verbindung fehlgeschlagen</string>
+  <string name="jsonfail">JSON fehlgeschlagen</string>
+  <string name="loading">Verbinde...</string>
+  <string name="searching">Suche...</string>
+  <string name="loadingServiceItems">Lade Ablauf Elemente...</string>
+  <string name="loadingSlideItems">Lade Folien Elemente...</string>
+  <string name="loadingStatusInfo">Lade Status Info...</string>
+  <string name="searchHint">Suche OpenLP</string>
+  <string name="searchResults">Such Ergebnisse</string>
+  <string name="showingResults">Zeige Ergebnisse für \'%s\'</string>
+</resources>

=== added directory 'res/values-el'
=== added file 'res/values-el/strings.xml'
--- res/values-el/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-el/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Ρυθμίσεις</string>
+  <string name="preferences">Προτιμήσεις</string>
+  <string name="exit">Έξοδος</string>
+  <string name="prev">Προηγούμενο</string>
+  <string name="next">Επόμενο</string>
+  <string name="previousServiceItem">Προηγούμενο Αντικείμενο</string>
+  <string name="nextServiceItem">Επόμενο Αντικείμενο</string>
+  <string name="previousSlide">Προηγούμενη Διαφάνεια</string>
+  <string name="nextSlide">Επόμενη Διαφάνεια</string>
+  <string name="blank">Κενό</string>
+  <string name="unblank">Μη Κενό</string>
+  <string name="alert">Ειδοποίηση:</string>
+  <string name="alertHint">Εισαγωγή μηνύματος ειδοποίησης</string>
+  <string name="alertTextNull">Παρακαλούμε εισάγετε ένα μήνυμα προς αποστολή.</string>
+  <string name="send">Αποστολή</string>
+  <string name="Slide">Διαφάνεια</string>
+  <string name="slides">Διαφάνειες</string>
+  <string name="Service">Λειτουργία</string>
+  <string name="misc">Διάφορα</string>
+  <string name="preferenceCategoryTitleServer">Server</string>
+  <string name="url">Server</string>
+  <string name="urlHint">Hostname ή διεύθυνση IP</string>
+  <string name="port">Θύρα</string>
+  <string name="enableCustomTimeouts">Ενεργοποίηση </string>
+  <string name="displayType">Εμφάνιση Τύπου Κενής Σελίδας</string>
+  <string name="displayBlankType">Εμφάνιση Τύπου Κενής Σελίδας</string>
+  <string name="displayBlankSummary">Επιλέξτε τον απαιτούμενο τύπο κενής σελίδας </string>
+  <string name="displayScreen">Οθόνη</string>
+  <string name="displayTheme">Θέμα</string>
+  <string name="displayDesktop">Επιφάνεια Εργασίας</string>
+  <string name="displayBlankOn">Επαναφορά εμφάνισης από</string>
+  <string name="displayBlankOff">Εμφάνιση Κενής Σελίδας στο</string>
+  <string name="customTimeoutsSummary">Επιλέξτε για τροποποίηση των ρυθμίσεων λήξης</string>
+  <string name="customTimeout">Τροποποιημένη Λήξη</string>
+  <string name="socketTimeout">Λήξη Socket</string>
+  <string name="socketTimeoutSummary">Επιλέξτε μια τιμή (milliseconds)</string>
+  <string name="connectionTimeout">Λήξη Σύνδεσης</string>
+  <string name="connectionTimedout">Η σύνδεση έληξε</string>
+  <string name="connectionTimeoutSummary">Επιλέξτε μια τιμή (milliseconds)</string>
+  <string name="save">Αποθήκευση</string>
+  <string name="unable">Μη δυνατή φόρτωση σελίδας -</string>
+  <string name="fail">Η σύνδεση απέτυχε</string>
+  <string name="jsonfail">JSON απέτυχε</string>
+  <string name="loading">Σύνδεση...</string>
+  <string name="searching">Αναζήτηση...</string>
+  <string name="loadingServiceItems">Φόρτωση Αντικειμένων Λειτουργίας...</string>
+  <string name="loadingSlideItems">Φόρτωση Αντικειμένων Διαφανειών...</string>
+  <string name="loadingStatusInfo">Φόρτωση Πληροφοριών Κατάστασης...</string>
+  <string name="searchHint">Αναζήτηση OpenLP</string>
+  <string name="searchResults">Αποτελέσματα Αναζήτησης</string>
+  <string name="showingResults">Εμφάνιση Αποτελεσμάτων για \'%s\'</string>
+</resources>

=== added directory 'res/values-en-rGB'
=== added file 'res/values-en-rGB/strings.xml'
--- res/values-en-rGB/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-en-rGB/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Settings</string>
+  <string name="preferences">Preferences</string>
+  <string name="exit">Exit</string>
+  <string name="prev">Previous</string>
+  <string name="next">Next</string>
+  <string name="previousServiceItem">Previous Item</string>
+  <string name="nextServiceItem">Next Item</string>
+  <string name="previousSlide">Previous Slide</string>
+  <string name="nextSlide">Next Slide</string>
+  <string name="blank">Blank</string>
+  <string name="unblank">Unblank</string>
+  <string name="alert">Alert:</string>
+  <string name="alertHint">Enter alert message</string>
+  <string name="alertTextNull">Please enter a message to send.</string>
+  <string name="send">Send</string>
+  <string name="Slide">Slide</string>
+  <string name="slides">Slides</string>
+  <string name="Service">Service</string>
+  <string name="misc">Miscellaneous</string>
+  <string name="preferenceCategoryTitleServer">Server</string>
+  <string name="url">Server</string>
+  <string name="urlHint">Hostname or IP</string>
+  <string name="port">Port</string>
+  <string name="enableCustomTimeouts">Enable Custom Timeouts</string>
+  <string name="displayType">Display Blank Type</string>
+  <string name="displayBlankType">Display Blank Type</string>
+  <string name="displayBlankSummary">Select the required blank type</string>
+  <string name="displayScreen">Screen</string>
+  <string name="displayTheme">Theme</string>
+  <string name="displayDesktop">Desktop</string>
+  <string name="displayBlankOn">Reset display from</string>
+  <string name="displayBlankOff">Blank display to</string>
+  <string name="customTimeoutsSummary">Check to modify timeout settings</string>
+  <string name="customTimeout">Custom Timeout</string>
+  <string name="socketTimeout">Socket Timeout</string>
+  <string name="socketTimeoutSummary">Select a value (milliseconds)</string>
+  <string name="connectionTimeout">Connection Timeout</string>
+  <string name="connectionTimedout">Connection timed out</string>
+  <string name="connectionTimeoutSummary">Select a value (milliseconds)</string>
+  <string name="save">Save</string>
+  <string name="unable">Unable to load page -</string>
+  <string name="fail">Connection failed</string>
+  <string name="jsonfail">JSON failed</string>
+  <string name="loading">Connecting...</string>
+  <string name="searching">Searching...</string>
+  <string name="loadingServiceItems">Loading Service Items...</string>
+  <string name="loadingSlideItems">Loading Slide Items...</string>
+  <string name="loadingStatusInfo">Loading Status Info...</string>
+  <string name="searchHint">Search OpenLP</string>
+  <string name="searchResults">Search Results</string>
+  <string name="showingResults">Showing Results for \'%s\'</string>
+</resources>

=== added directory 'res/values-en-rZA'
=== added file 'res/values-en-rZA/strings.xml'
--- res/values-en-rZA/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-en-rZA/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Settings</string>
+  <string name="preferences">Preferences</string>
+  <string name="exit">Exit</string>
+  <string name="prev">Previous</string>
+  <string name="next">Next</string>
+  <string name="previousServiceItem">Previous Item</string>
+  <string name="nextServiceItem">Next Item</string>
+  <string name="previousSlide">Previous Slide</string>
+  <string name="nextSlide">Next Slide</string>
+  <string name="blank">Blank</string>
+  <string name="unblank">Unblank</string>
+  <string name="alert">Alert:</string>
+  <string name="alertHint">Enter alert message</string>
+  <string name="alertTextNull">Please enter a message to send.</string>
+  <string name="send">Send</string>
+  <string name="Slide">Slide</string>
+  <string name="slides">Slides</string>
+  <string name="Service">Service</string>
+  <string name="misc">Miscellaneous</string>
+  <string name="preferenceCategoryTitleServer">Server</string>
+  <string name="url">Server</string>
+  <string name="urlHint">Hostname or IP</string>
+  <string name="port">Port</string>
+  <string name="enableCustomTimeouts">Enable Custom Timeouts</string>
+  <string name="displayType">Display Blank Type</string>
+  <string name="displayBlankType">Display Blank Type</string>
+  <string name="displayBlankSummary">Select the required blank type</string>
+  <string name="displayScreen">Screen</string>
+  <string name="displayTheme">Theme</string>
+  <string name="displayDesktop">Desktop</string>
+  <string name="displayBlankOn">Reset display from</string>
+  <string name="displayBlankOff">Blank display to</string>
+  <string name="customTimeoutsSummary">Check to modify timeout settings</string>
+  <string name="customTimeout">Custom Timeout</string>
+  <string name="socketTimeout">Socket Timeout</string>
+  <string name="socketTimeoutSummary">Select a value (milliseconds)</string>
+  <string name="connectionTimeout">Connection Timeout</string>
+  <string name="connectionTimedout">Connection timed out</string>
+  <string name="connectionTimeoutSummary">Select a value (milliseconds)</string>
+  <string name="save">Save</string>
+  <string name="unable">Unable to load page -</string>
+  <string name="fail">Connection failed</string>
+  <string name="jsonfail">JSON failed</string>
+  <string name="loading">Connecting...</string>
+  <string name="searching">Searching...</string>
+  <string name="loadingServiceItems">Loading Service Items...</string>
+  <string name="loadingSlideItems">Loading Slide Items...</string>
+  <string name="loadingStatusInfo">Loading Status Info...</string>
+  <string name="searchHint">Search OpenLP</string>
+  <string name="searchResults">Search Results</string>
+  <string name="showingResults">Showing Results for \'%s\'</string>
+</resources>

=== added directory 'res/values-es'
=== added directory 'res/values-et'
=== added file 'res/values-et/strings.xml'
--- res/values-et/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-et/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Sätted</string>
+  <string name="preferences">Eelistused</string>
+  <string name="exit">Välju</string>
+  <string name="prev">Eelmine</string>
+  <string name="next">Järgmine</string>
+  <string name="previousServiceItem">Eelmine element</string>
+  <string name="nextServiceItem">Järgmine element</string>
+  <string name="previousSlide">Eelmine slaid</string>
+  <string name="nextSlide">Järgmine slaid</string>
+  <string name="blank">Tühjenda</string>
+  <string name="unblank">Näita</string>
+  <string name="alert">Teade:</string>
+  <string name="alertHint">Sisesta teade</string>
+  <string name="alertTextNull">Palun sisesta teade, mida saata.</string>
+  <string name="send">Saada</string>
+  <string name="Slide">Slaid</string>
+  <string name="slides">Slaidid</string>
+  <string name="Service">Teenistus</string>
+  <string name="misc">Muud</string>
+  <string name="preferenceCategoryTitleServer">Server</string>
+  <string name="url">Server</string>
+  <string name="urlHint">Hostinimi või IP</string>
+  <string name="port">Port</string>
+  <string name="enableCustomTimeouts">Kohandatud aegumisegade kasutamine</string>
+  <string name="displayType">Kuva tühjendamise liik</string>
+  <string name="displayBlankType">Kuva tühjendamise liik</string>
+  <string name="displayBlankSummary">Vali kuva tühjendamise liik</string>
+  <string name="displayScreen">Ekraan</string>
+  <string name="displayTheme">Kujundus</string>
+  <string name="displayDesktop">Töölaud</string>
+  <string name="displayBlankOn">Kuvavormi lähtestamine</string>
+  <string name="displayBlankOff">Kuva tühjendamisel kuvatakse</string>
+  <string name="customTimeoutsSummary">Märgi, et muuta aegumise sätteid</string>
+  <string name="customTimeout">Kohandatud aegumine</string>
+  <string name="socketTimeout">Pesa aegumine</string>
+  <string name="socketTimeoutSummary">Vali kestus (millisekundid)</string>
+  <string name="connectionTimeout">Ühenduse aegumine</string>
+  <string name="connectionTimedout">Ühendus aegus</string>
+  <string name="connectionTimeoutSummary">Vali kestus (millisekundid)</string>
+  <string name="save">Salvesta</string>
+  <string name="unable">Lehe laadimine pole võimalik -</string>
+  <string name="fail">Ühendus nurjus</string>
+  <string name="jsonfail">JSON nurjus</string>
+  <string name="loading">Ühendumine...</string>
+  <string name="searching">Otsimine...</string>
+  <string name="loadingServiceItems">Teenistuse elementide laadimine...</string>
+  <string name="loadingSlideItems">Slaidi elementide laadimine...</string>
+  <string name="loadingStatusInfo">Olekuinfo laadimine...</string>
+  <string name="searchHint">OpenLP otsing</string>
+  <string name="searchResults">Otsingu tulemused</string>
+  <string name="showingResults">Tulemused otsingule \'%s\' </string>
+</resources>

=== added directory 'res/values-fr'
=== added file 'res/values-fr/strings.xml'
--- res/values-fr/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-fr/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Paramètres</string>
+  <string name="preferences">Préférences</string>
+  <string name="exit">Quitter</string>
+  <string name="prev">Précédent</string>
+  <string name="next">Suivant</string>
+  <string name="previousServiceItem">Élément précédent</string>
+  <string name="nextServiceItem">Élément suivant</string>
+  <string name="previousSlide">Diapo précédente</string>
+  <string name="nextSlide">Diapo suivante</string>
+  <string name="blank">Vide</string>
+  <string name="unblank">Restaure</string>
+  <string name="alert">Alerte :</string>
+  <string name="alertHint">Entrez le message d\'alerte</string>
+  <string name="alertTextNull">Veuillez entrer un message à envoyer.</string>
+  <string name="send">Envoyer</string>
+  <string name="Slide">Diapositive</string>
+  <string name="slides">Diapositives</string>
+  <string name="Service">Service</string>
+  <string name="misc">Divers</string>
+  <string name="preferenceCategoryTitleServer">Serveur</string>
+  <string name="url">Serveur</string>
+  <string name="urlHint">Nom d\'hôte ou IP</string>
+  <string name="port">Port</string>
+  <string name="enableCustomTimeouts">Activer le délai personnalisé</string>
+  <string name="displayType">Afficher un type vide</string>
+  <string name="displayBlankType">Afficher un type vide</string>
+  <string name="displayBlankSummary">Sélectionnez le type vide requis</string>
+  <string name="displayScreen">Écran</string>
+  <string name="displayTheme">Thème</string>
+  <string name="displayDesktop">Bureau</string>
+  <string name="displayBlankOn">Restaure l\'affichage à partir de</string>
+  <string name="displayBlankOff">Affichage vide vers</string>
+  <string name="customTimeoutsSummary">Vérifiez le paramétrage du délai</string>
+  <string name="customTimeout">Délai personnalisé</string>
+  <string name="socketTimeout">Délai de connexion réseau</string>
+  <string name="socketTimeoutSummary">Sélectionnez une valeur (millisecondes)</string>
+  <string name="connectionTimeout">Délai de connexion</string>
+  <string name="connectionTimedout">Connexion expirée</string>
+  <string name="connectionTimeoutSummary">Sélectionnez une valeur (millisecondes)</string>
+  <string name="save">Enregistrer</string>
+  <string name="unable">Impossible de charger la page -</string>
+  <string name="fail">Échec de connexion</string>
+  <string name="jsonfail">Erreur JSON</string>
+  <string name="loading">Connexion en cours...</string>
+  <string name="searching">Recherche en cours...</string>
+  <string name="loadingServiceItems">Chargement des éléments du service...</string>
+  <string name="loadingSlideItems">Chargement des diapositives...</string>
+  <string name="loadingStatusInfo">Chargement des infos d\'état...</string>
+  <string name="searchHint">Recherche OpenLP</string>
+  <string name="searchResults">Résultats de recherche</string>
+  <string name="showingResults">Affichage des résultats de \'%s\'</string>
+</resources>

=== added directory 'res/values-hu'
=== added file 'res/values-hu/strings.xml'
--- res/values-hu/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-hu/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">Beállítások</string>
+  <string name="preferences">Beállítások</string>
+  <string name="exit">Kilépés</string>
+  <string name="prev">Előző</string>
+  <string name="next">Következő</string>
+  <string name="previousServiceItem">Előző elem</string>
+  <string name="nextServiceItem">Következő elem</string>
+  <string name="previousSlide">Előző dia</string>
+  <string name="nextSlide">Következő dia</string>
+  <string name="blank">Elsötétítés</string>
+  <string name="unblank">Elsötétítés visszavonása</string>
+  <string name="alert">Értesítés:</string>
+  <string name="alertHint">Értesítés megadása</string>
+  <string name="alertTextNull">Kérem, adj meg egy értesítő üzenetet.</string>
+  <string name="send">Küldés</string>
+  <string name="Slide">Dia</string>
+  <string name="slides">Diák</string>
+  <string name="Service">Sorrend</string>
+  <string name="misc">Egyebek</string>
+  <string name="preferenceCategoryTitleServer">Kiszolgáló</string>
+  <string name="url">Kiszolgáló</string>
+  <string name="urlHint">Gépnév vagy IP-cím</string>
+  <string name="port">Portszám</string>
+  <string name="enableCustomTimeouts">Egyéni időtúllépés engedélyezése</string>
+  <string name="displayType">Képernyő elsötétítési mód</string>
+  <string name="displayBlankType">Képernyő elsötétítési mód</string>
+  <string name="displayBlankSummary">Válaszd ki a kívánt elsötétítési módot</string>
+  <string name="displayScreen">Képernyő</string>
+  <string name="displayTheme">Téma</string>
+  <string name="displayDesktop">Asztalra</string>
+  <string name="displayBlankOn">Képernyő alaphelyzetbe állítása erről</string>
+  <string name="displayBlankOff">Képernyő elsötétítése erre</string>
+  <string name="customTimeoutsSummary">Jelöld be az időtúllépési beállítások módosításához</string>
+  <string name="customTimeout">Egyéni időtúllépés</string>
+  <string name="socketTimeout">Socket időtúllépés</string>
+  <string name="socketTimeoutSummary">Válassz egy értéket (milliszekundum)</string>
+  <string name="connectionTimeout">Kapcsolódási időtúllépés</string>
+  <string name="connectionTimedout">Időtúllépés miatt a kapcsolat megszakadt</string>
+  <string name="connectionTimeoutSummary">Válassz egy értéket (milliszekundum)</string>
+  <string name="save">Mentés</string>
+  <string name="unable">Az oldal nem tölthető be -</string>
+  <string name="fail">A kapcsolat megszakadt</string>
+  <string name="jsonfail">JSON feldolgozás sikertelen</string>
+  <string name="loading">Kapcsolódás…</string>
+  <string name="searching">Keresés…</string>
+  <string name="loadingServiceItems">Sorrend elemeinek betöltése…</string>
+  <string name="loadingSlideItems">Dia elemeinek betöltése…</string>
+  <string name="loadingStatusInfo">Állapotinformációk betöltése…</string>
+  <string name="searchHint">OpenLP keresés</string>
+  <string name="searchResults">Keresési eredmények</string>
+  <string name="showingResults">Keresési eredmények: %s </string>
+</resources>

=== added directory 'res/values-ja'
=== added file 'res/values-ja/strings.xml'
--- res/values-ja/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-ja/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,51 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+  <string name="app_name">OpenLP</string>
+  <string name="settings">設定</string>
+  <string name="preferences">設定</string>
+  <string name="exit">終了</string>
+  <string name="prev">前</string>
+  <string name="next">次</string>
+  <string name="previousServiceItem">前の項目</string>
+  <string name="nextServiceItem">次の項目</string>
+  <string name="previousSlide">前のスライド</string>
+  <string name="nextSlide">次のスライド</string>
+  <string name="blank">ブランク</string>
+  <string name="unblank">ブランクを戻す</string>
+  <string name="alert">警告:</string>
+  <string name="alertHint">警告文を入力</string>
+  <string name="alertTextNull">警告するメッセージを入力してください。</string>
+  <string name="send">送る</string>
+  <string name="Slide">スライド</string>
+  <string name="slides">スライド</string>
+  <string name="Service">礼拝</string>
+  <string name="misc">その他</string>
+  <string name="preferenceCategoryTitleServer">サーバ</string>
+  <string name="url">サーバ</string>
+  <string name="urlHint">ホスト名またはIPアドレス</string>
+  <string name="port">ポート</string>
+  <string name="enableCustomTimeouts">任意のタイムアウトを有効にする</string>
+  <string name="displayType">ブランクの種類</string>
+  <string name="displayBlankType">ブランクの種類</string>
+  <string name="displayBlankSummary">ブランクの種類を選択してください</string>
+  <string name="displayScreen">スクリーン</string>
+  <string name="displayTheme">テーマ</string>
+  <string name="displayDesktop">デスクトップ</string>
+  <string name="customTimeout">カスタムタイムアウト</string>
+  <string name="socketTimeout">ソケットタイムアウト</string>
+  <string name="socketTimeoutSummary">値を選択 (ミリ秒)</string>
+  <string name="connectionTimeout">接続タイムアウト</string>
+  <string name="connectionTimedout">接続がタイムアウトしました</string>
+  <string name="connectionTimeoutSummary">値を選択 (ミリ秒)</string>
+  <string name="save">保存</string>
+  <string name="fail">接続に失敗しました</string>
+  <string name="jsonfail">JSONに失敗しました</string>
+  <string name="loading">接続中...</string>
+  <string name="searching">検索中...</string>
+  <string name="loadingServiceItems">礼拝項目を読込中...</string>
+  <string name="loadingSlideItems">スライド項目を読込中...</string>
+  <string name="loadingStatusInfo">ステータス情報を読込中...</string>
+  <string name="searchHint">OpenLPを検索</string>
+  <string name="searchResults">検索結果</string>
+  <string name="showingResults">\'%s\'の結果を表示中</string>
+</resources>

=== added directory 'res/values-ko'
=== added directory 'res/values-nb'
=== added directory 'res/values-nl'
=== added directory 'res/values-pt-rBR'
=== added directory 'res/values-ru'
=== added directory 'res/values-sv'
=== added file 'res/values-sv/strings.xml'
--- res/values-sv/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values-sv/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="app_name">OpenLP</string>
+    <string name="settings">Inställningar</string>
+    <string name="exit">Avsluta</string>
+    <string name="prev">Föregående</string>
+    <string name="next">Nästa</string>
+    <string name="blank">Dölj</string>
+    <string name="unblank">Visa</string>
+    <string name="alert">Varning:</string>
+    <string name="send">Skicka</string>
+    <string name="Slide">Bild</string>
+    <string name="Service">Planering</string>
+    <string name="misc">Diverse</string>
+    <string name="url">Server</string>
+    <string name="port">Port</string>
+    <string name="save">Spara</string>
+    <string name="unable">Lyckas inte ladda sidan -</string>
+    <string name="fail">Anslutningen misslyckades</string>
+    <string name="jsonfail">JSON misslyckades</string>
+    <string name="loading">Ansluter...</string>
+</resources>

=== added directory 'res/values-zh-rCN'
=== added file 'res/values/colors.xml'
--- res/values/colors.xml	1970-01-01 00:00:00 +0000
+++ res/values/colors.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,4 @@
+<resources>
+    <color name="lightGreen">#ff66ff33</color>
+    <color name="white">#ffffff00</color>
+</resources>
\ No newline at end of file

=== added file 'res/values/defaultValues.xml'
--- res/values/defaultValues.xml	1970-01-01 00:00:00 +0000
+++ res/values/defaultValues.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,11 @@
+<resources>
+    <!-- STRING -->
+    <string name="hostDefaultValue">192.168.1.1</string>
+    <string name="portDefaultValue">4316</string>
+    <string name="displayTypeValue">@string/displayScreen</string>
+
+    <!-- INTEGER -->
+    <integer name="socketTimeoutDefaultValue">3000</integer>
+    <integer name="connectionTimeoutDefaultValue">3000</integer>
+    <integer name="textSizeDefaultValue">14</integer>    
+</resources>
\ No newline at end of file

=== added file 'res/values/httpClientTimeoutValues.xml'
--- res/values/httpClientTimeoutValues.xml	1970-01-01 00:00:00 +0000
+++ res/values/httpClientTimeoutValues.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,16 @@
+<resources>
+    <string-array name="socketValueEntries">
+		<item>3000</item>
+		<item>4000</item>
+		<item>5000</item>
+		<item>8000</item>
+		<item>10000</item>
+	</string-array>
+	<string-array name="socketValues">
+		<item>3000</item>
+		<item>4000</item>
+		<item>5000</item>
+		<item>8000</item>
+		<item>10000</item>
+	</string-array>
+</resources>
\ No newline at end of file

=== added file 'res/values/keyStrings.xml'
--- res/values/keyStrings.xml	1970-01-01 00:00:00 +0000
+++ res/values/keyStrings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,10 @@
+<resources>
+    <string name="keyEnableCustomTimeout">enableCustomTimeout</string>
+    <string name="keyConnectionTimeout">connectionTimeout</string>
+    <string name="keyDisplayBlankType">blankType</string> 
+    <string name="keyTextSize">textSize</string> 
+    <string name="keySocketTimeout">socketTimeout</string>
+    <string name="keyHost">keyHost</string>
+    <string name="keyPort">keyPort</string>
+    <string name="keySharedPreferences">keySharedPreferences</string>
+</resources>
\ No newline at end of file

=== added file 'res/values/misc.xml'
--- res/values/misc.xml	1970-01-01 00:00:00 +0000
+++ res/values/misc.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,12 @@
+<resources>
+    <string-array name="displayTypeValueEntries">
+		<item>@string/displayScreen</item>
+		<item>@string/displayTheme</item>
+		<item>@string/displayDesktop</item>
+	</string-array>
+    <string-array name="displayTypeValues">
+		<item>@string/displayScreen</item>
+		<item>@string/displayTheme</item>
+		<item>@string/displayDesktop</item>
+	</string-array>	
+</resources>
\ No newline at end of file

=== added file 'res/values/strings.xml'
--- res/values/strings.xml	1970-01-01 00:00:00 +0000
+++ res/values/strings.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="app_name">OpenLP</string>
+    <string name="settings">Settings</string>
+	<string name="preferences">Preferences</string>
+    <string name="exit">Exit</string>
+    <string name="prev">Previous</string>
+    <string name="next">Next</string>
+    <string name="previousServiceItem">Previous Item</string>
+    <string name="nextServiceItem">Next Item</string>
+    <string name="previousSlide">Previous Slide</string>
+    <string name="nextSlide">Next Slide</string>
+    <string name="blank">Blank</string>
+    <string name="unblank">Unblank</string>
+    <string name="alert">Alert:</string>
+    <string name="alertHint">Enter alert message</string>
+    <string name="alertTextNull">Please enter a message to send.</string>
+    <string name="send">Send</string>
+    <string name="Slide">Slide</string>
+    <string name="slides">Slides</string>
+    <string name="Service">Service</string>
+    <string name="misc">Miscellaneous</string>
+    <string name="preferenceCategoryTitleServer">Server</string>
+    <string name="url">Server</string>
+    <string name="urlHint">Hostname or IP</string>
+    <string name="port">Port</string>
+    <string name="enableCustomTimeouts">Enable Custom Timeouts</string>
+    <string name="textSizeType">Text Size Type</string>  
+    <string name="textSizeSummary">Change the Service text size</string>
+    <string name="displayType">Display Blank Type</string>
+    <string name="displayBlankType">Display Blank Type</string>
+    <string name="displayBlankSummary">Select the required blank type</string>
+    <string name="displayScreen">Screen</string>
+    <string name="displayTheme">Theme</string>
+    <string name="displayDesktop">Desktop</string>
+    <string name="displayBlankOn">Reset display from</string>
+    <string name="displayBlankOff">Blank display to</string>
+    <string name="customTimeoutsSummary">Check to modify timeout settings</string>
+    <string name="customTimeout">Custom Timeout</string>
+    <string name="socketTimeout">Socket Timeout</string>
+    <string name="socketTimeoutSummary">Select a value (milliseconds)</string>
+    <string name="connectionTimeout">Connection Timeout</string>
+    <string name="connectionTimedout">Connection timed out</string>
+    <string name="connectionTimeoutSummary">Select a value (milliseconds)</string>
+    <string name="save">Save</string>
+    <string name="unable">Unable to load page -</string>
+    <string name="connectionFailed">Connection failed</string>
+    <string name="jsonfail">Message format error </string>
+    <string name="loading">Connecting...</string>
+    <string name="searching">Searching...</string>
+    <string name="loadingFailed">Error - Load Failed</string>    
+    <string name="loadingServiceItems">Loading Service Items...</string>
+    <string name="loadingSlideItems">Loading Slide Items...</string>
+    <string name="loadingStatusInfo">Loading Status Info...</string>
+	<string name="searchHint">Search OpenLP</string>
+    <string name="searchResults">Search Results</string>
+    <string name="showingResults">Showing Results for \'%s\'</string>
+
+</resources>

=== added file 'res/values/textSize.xml'
--- res/values/textSize.xml	1970-01-01 00:00:00 +0000
+++ res/values/textSize.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,22 @@
+<resources>
+    <string-array name="textSizeValueEntries">
+		<item>6</item>
+		<item>8</item>
+		<item>10</item>
+		<item>12</item>
+		<item>14</item>
+		<item>16</item>
+		<item>18</item>
+		<item>20</item>		
+	</string-array>
+    <string-array name="textSizeValues">
+		<item>6</item>
+		<item>8</item>
+		<item>10</item>
+		<item>12</item>
+		<item>14</item>
+		<item>16</item>
+		<item>18</item>
+		<item>20</item>		
+	</string-array>	
+</resources>
\ No newline at end of file

=== added directory 'res/xml'
=== added file 'res/xml/preferences.xml'
--- res/xml/preferences.xml	1970-01-01 00:00:00 +0000
+++ res/xml/preferences.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen
+        xmlns:android="http://schemas.android.com/apk/res/android";>
+    <PreferenceCategory
+            android:title="@string/textSizeType">
+        <ListPreference
+                android:title="@string/textSizeType"
+                android:key="@string/keyTextSize"
+                android:summary="@string/textSizeSummary"
+                android:entries="@array/textSizeValueEntries"
+                android:entryValues="@array/textSizeValues"
+                android:defaultValue="@integer/textSizeDefaultValue"/>  
+    </PreferenceCategory>
+    <PreferenceCategory
+            android:title="@string/displayType">
+        <ListPreference
+                android:title="@string/displayBlankType"
+                android:key="@string/keyDisplayBlankType"
+                android:summary="@string/displayBlankSummary"
+                android:entries="@array/displayTypeValueEntries"
+                android:entryValues="@array/displayTypeValues"
+                android:defaultValue="@string/displayTypeValue"/>  
+    </PreferenceCategory>
+    <PreferenceCategory
+            android:title="@string/preferenceCategoryTitleServer">
+        <EditTextPreference
+                android:title="@string/url"
+                android:key="@string/keyHost"
+                android:hint="@string/urlHint"
+                android:inputType="textUri"
+                android:name="@string/url"/>
+        <EditTextPreference
+                android:defaultValue="@string/portDefaultValue"
+                android:title="@string/port"
+                android:key="@string/keyPort"
+                android:name="@string/url"
+                android:inputType="number"/>
+    </PreferenceCategory>
+    <PreferenceCategory
+            android:title="@string/customTimeout">
+        <CheckBoxPreference
+                android:title="@string/enableCustomTimeouts"
+                android:key="@string/keyEnableCustomTimeout"
+                android:summary="@string/customTimeoutsSummary"/>
+        <ListPreference
+                android:title="@string/connectionTimeout"
+                android:key="@string/keyConnectionTimeout"
+                android:summary="@string/connectionTimeoutSummary"
+                android:dependency="@string/keyEnableCustomTimeout"
+                android:entries="@array/socketValueEntries"
+                android:entryValues="@array/socketValues"
+                android:defaultValue="@integer/connectionTimeoutDefaultValue"/>
+        <ListPreference
+                android:title="@string/socketTimeout"
+                android:key="@string/keySocketTimeout"
+                android:summary="@string/socketTimeoutSummary"
+                android:dependency="@string/keyEnableCustomTimeout"
+                android:entries="@array/socketValueEntries"
+                android:entryValues="@array/socketValues"
+                android:defaultValue="@integer/socketTimeoutDefaultValue"/>
+    </PreferenceCategory>
+</PreferenceScreen>

=== added file 'res/xml/searchable.xml'
--- res/xml/searchable.xml	1970-01-01 00:00:00 +0000
+++ res/xml/searchable.xml	2012-02-08 06:21:19 +0000
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<searchable
+		xmlns:android="http://schemas.android.com/apk/res/android";
+		android:label="@string/app_name"
+		android:hint="@string/searchHint"
+		>
+	
+</searchable>
\ No newline at end of file

=== added directory 'src'
=== added directory 'src/org'
=== added directory 'src/org/openlp'
=== added directory 'src/org/openlp/android'
=== added file 'src/org/openlp/android/OpenLP.java'
--- src/org/openlp/android/OpenLP.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/OpenLP.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,92 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android;
+
+import android.app.TabActivity;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Window;
+import android.widget.TabHost;
+
+import org.openlp.android.activity.Alert;
+import org.openlp.android.activity.Misc;
+import org.openlp.android.activity.Preferences;
+import org.openlp.android.activity.Service;
+import org.openlp.android.activity.Slide;
+import org.openlp.android.activity.StageView;
+
+/**
+ * OpenLP-Android initialisation point.
+ */
+public class OpenLP extends TabActivity {
+	final int tabHeight = 45;
+	/**
+	 * Called when the activity is first created.
+	 */
+	@Override
+	public void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		requestWindowFeature(Window.FEATURE_NO_TITLE);		
+		setContentView(R.layout.main);
+		
+		if (getSharedPreferences(getString(R.string.keySharedPreferences),
+				Context.MODE_PRIVATE).getString(getString(R.string.keyHost),
+				"NONE").equals("NONE")
+				|| getSharedPreferences(
+						getString(R.string.keySharedPreferences),
+						Context.MODE_PRIVATE).getString(
+						getString(R.string.keyHost), null).equals(null)) {
+			Log.d(LOG_TAG,
+					"URL preference not set. Starting preference activity...");
+			Intent preferenceIntent = new Intent(this, Preferences.class);
+			startActivity(preferenceIntent);
+		}
+		TabHost tabHost = getTabHost();
+
+		tabHost.addTab(tabHost.newTabSpec("service").setIndicator("Service")
+				.setContent(new Intent(this, Service.class)));
+
+		tabHost.addTab(tabHost.newTabSpec("slide").setIndicator("Slide")
+				.setContent(new Intent(this, Slide.class)));
+
+		tabHost.addTab(tabHost.newTabSpec("display").setIndicator("Display")
+				.setContent(new Intent(this, Misc.class)));
+
+		tabHost.addTab(tabHost.newTabSpec("alerts").setIndicator("Alerts")
+				.setContent(new Intent(this, Alert.class)));
+
+		tabHost.addTab(tabHost.newTabSpec("stage").setIndicator("Stage")
+				.setContent(new Intent(this, StageView.class)));
+		/*
+		 * Set the overall tab height for all tabs
+		 */
+		for(int i=0; i<tabHost.getTabWidget().getTabCount(); i++){
+			tabHost.getTabWidget().getChildAt(i).getLayoutParams().height = tabHeight;
+		}
+
+	}
+
+	private final String LOG_TAG = OpenLP.class.getName();
+}
\ No newline at end of file

=== added directory 'src/org/openlp/android/activity'
=== added file 'src/org/openlp/android/activity/Alert.java'
--- src/org/openlp/android/activity/Alert.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/Alert.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,88 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2011 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2011 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import org.openlp.android.R;
+import org.openlp.android.api.Api;
+import org.openlp.android.utility.JSONHandler;
+import org.openlp.android.utility.WebCallAsyncTask;
+
+import android.app.Activity;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.Toast;
+
+public class Alert extends DefaultActivity {
+	private final Context context = this;
+	
+	@Override
+	public void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+
+		Log.i(LOG_TAG, "onCreate");
+		setContentView(R.layout.alert);
+
+		findViewById(R.id.send).setOnClickListener(mSend);
+	}
+		
+	public Button.OnClickListener mSend = new Button.OnClickListener() {
+		@Override
+		public void onClick(View v) {
+			EditText edittext = (EditText) findViewById(R.id.alert);
+			String alert;
+			try {
+				if (edittext.getText().toString().trim().length() > 0) {
+					alert = JSONHandler.createRequestJSON("text", edittext
+							.getText().toString());
+					new WebCallAsyncTask(context, ALERT).execute(alert);
+				}
+				else {
+					Toast.makeText(getBaseContext(),
+							getString(R.string.alertTextNull),
+							Toast.LENGTH_SHORT).show();
+				}
+			}
+			catch (JSONHandler.JSONHandlerException e) {
+				Toast.makeText(context,R.string.jsonfail, 
+						Toast.LENGTH_LONG).show();
+				Log.e(LOG_TAG, e.toString());				
+			}
+		}
+	};
+
+	@Override
+	protected void onResume() {
+		super.onResume();
+		Log.d(LOG_TAG, "Resume");
+	}
+
+	private final String LOG_TAG = Alert.class.getName();
+}

=== added file 'src/org/openlp/android/activity/DefaultActivity.java'
--- src/org/openlp/android/activity/DefaultActivity.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/DefaultActivity.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,55 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2011 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2011 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
+import org.openlp.android.R;
+import org.openlp.android.api.Api;
+
+public class DefaultActivity extends Activity implements Api {
+	@Override
+	public boolean onCreateOptionsMenu(Menu menu) {
+		MenuInflater inflater = getMenuInflater();
+		inflater.inflate(R.menu.menu, menu);
+		return true;
+	}
+
+	@Override
+	public boolean onOptionsItemSelected(MenuItem item) {
+		// Handle item selection
+		switch (item.getItemId()) {
+			case R.id.preferences:
+				startActivity(new Intent(this, Preferences.class));
+				return true;
+			case R.id.menuSearch:
+				onSearchRequested();
+				return true;
+			default:
+				return super.onOptionsItemSelected(item);
+		}
+	}
+}

=== added file 'src/org/openlp/android/activity/Misc.java'
--- src/org/openlp/android/activity/Misc.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/Misc.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,263 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import java.util.Arrays;
+import android.app.Activity;
+import android.app.ProgressDialog;
+import android.content.Context;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.Toast;
+import android.widget.ToggleButton;
+
+import org.apache.http.HttpEntity;
+import org.apache.http.HttpResponse;
+import org.openlp.android.R;
+import org.openlp.android.api.Api;
+import org.openlp.android.data.Poll;
+import org.openlp.android.utility.JSONHandler;
+import org.openlp.android.utility.OpenLPHttpClient;
+import org.openlp.android.utility.WebCallAsyncTask;
+
+public class Misc extends DefaultActivity {
+	private final Context context = this;
+	Misc misc = this;
+	SharedPreferences prefs;
+	String displayType;
+
+	@Override
+	public void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+
+		Log.i(LOG_TAG, "onCreate");
+		setContentView(R.layout.misc);
+
+		prefs = getApplicationContext().getSharedPreferences(
+				getApplicationContext()
+						.getString(R.string.keySharedPreferences),
+				Context.MODE_PRIVATE);
+		Log.d(LOG_TAG, prefs.getAll().toString());
+		displayType = prefs
+				.getString(
+						getApplicationContext().getString(
+								R.string.keyDisplayBlankType),
+						getApplicationContext().getString(
+								R.string.displayTypeValue));
+		Log.d(LOG_TAG, "Pref Display Type = " + displayType);
+
+		final ToggleButton toggleButton = (ToggleButton) findViewById(R.id.toggleDisplayButton);
+
+		toggleButton.setOnClickListener(new View.OnClickListener() {
+			@Override
+			public void onClick(View view) {
+				try {
+					if (!toggleButton.isChecked()) {
+						new WebCallAsyncTask(context).execute(DISPLAY_SHOW);
+					}
+					else {
+						Log.d(LOG_TAG, "onCLick Display Type = " + displayType);
+						if (displayType
+								.equals(getString(R.string.displayScreen))) {
+							Log.d(LOG_TAG, "Blank matched");
+							new WebCallAsyncTask(context)
+									.execute(DISPLAY_HIDE_SCREEN);
+						}
+						else if (displayType
+								.equals(getString(R.string.displayTheme))) {
+							Log.d(LOG_TAG, "Theme matched");
+							new WebCallAsyncTask(context)
+									.execute(DISPLAY_HIDE_THEME);
+						}
+						else {
+							Log.d(LOG_TAG, "Desktop matched");
+							new WebCallAsyncTask(context)
+									.execute(DISPLAY_HIDE_DESKTOP);
+						}
+					}
+				}
+				catch (Exception e) {
+					Toast.makeText(context,R.string.loadingFailed, 
+							Toast.LENGTH_LONG).show();
+					Log.e(LOG_TAG, e.toString());
+				}
+				try {
+					Thread.sleep(500);
+				}
+				catch (InterruptedException e) {
+					e.printStackTrace();
+				}
+				PollStatusTask poll = new PollStatusTask(misc);
+				poll.execute(POLL_STATUS);
+			}
+		});
+	}
+
+	@Override
+	protected void onResume() {
+		super.onResume();
+		Log.d(LOG_TAG, "Resume");
+		new PollStatusTask(this).execute(POLL_STATUS);
+	}
+
+	/**
+	 * Asynchronous task to Poll the status data.
+	 */
+	class PollStatusTask extends AsyncTask<String, Void, Poll> {
+		Misc miscActivity;
+		ProgressDialog progressDialog;
+		String error;
+
+		PollStatusTask(Misc miscActivity) {
+			this.miscActivity = miscActivity;
+		}
+
+		@Override
+		protected void onPreExecute() {
+			super.onPreExecute();
+			progressDialog = ProgressDialog.show(Misc.this,
+					getString(R.string.loading),
+					getString(R.string.loadingStatusInfo));
+		}
+
+		@Override
+		protected Poll doInBackground(String... strings) {
+			OpenLPHttpClient httpClient = new OpenLPHttpClient(
+					getApplicationContext());
+			HttpResponse response = null;
+			error = "";
+
+			Log.d(LOG_TAG, "Processing:" + Arrays.asList(strings));
+			try {
+				httpClient.setUrl(strings[0]);
+				if (httpClient.getUrl().getHost().trim().length() <= 0) {
+					startActivity(new Intent(miscActivity, Preferences.class));
+				}
+				else {
+					response = httpClient.execute();
+				}
+
+				if (response != null
+						&& response.getStatusLine().getStatusCode() == 200) {
+					HttpEntity entity = response.getEntity();
+
+					if (entity != null) {
+						Poll poll = JSONHandler.parsePollResponseJSON(entity);
+						Log.i(LOG_TAG, String.format("Service Items: %s", poll));
+						return poll;
+					}
+				}
+				else {
+					error = String.format("%s %s",
+							getString(R.string.unable), response);
+				}
+			}
+			catch (Exception e) {
+				error = String.format("%s: %s", e.getClass()
+						.getSimpleName(), e.getMessage());
+			}
+			return null;
+		}
+
+		@Override
+		protected void onPostExecute(Poll poll) {
+			super.onPostExecute(poll);
+			final ToggleButton toggleButton = (ToggleButton) findViewById(R.id.toggleDisplayButton);
+			if (poll == null) {
+				toggleButton.setEnabled(false);
+			}
+			else {
+				String onText = "";
+				String offText = "";
+
+				displayType = prefs.getString(
+						getApplicationContext().getString(
+								R.string.keyDisplayBlankType),
+						getApplicationContext().getString(
+								R.string.displayTypeValue));
+				Log.d(LOG_TAG, "onPostExecute Display Type = " + displayType
+						+ " " + poll.isDisplayHidden());
+				/*
+				 * Set display blanking to the preferences value
+				 */
+				if (displayType.equals(getString(R.string.displayScreen))) {
+					Log.d(LOG_TAG, "Blank called");
+					onText = context.getString(R.string.displayScreen);
+					offText = context.getString(R.string.displayScreen);
+				}
+				else if (displayType.equals(getString(R.string.displayTheme))) {
+					Log.d(LOG_TAG, "Theme called");
+					onText = context.getString(R.string.displayTheme);
+					offText = context.getString(R.string.displayTheme);
+				}
+				else {
+					Log.d(LOG_TAG, "Desktop called");
+					onText = context.getString(R.string.displayDesktop);
+					offText = context.getString(R.string.displayDesktop);
+				}
+				/*
+				 * Set display blanked to the off value to that of the screen
+				 */
+				if (poll.isDisplayHidden()) {
+					if (poll.isBlankedDisplayed()) {
+						Log.d(LOG_TAG, "Hidden Blank called");
+						onText = context.getString(R.string.displayScreen);
+					}
+					else if (poll.isThemeDisplayed()) {
+						Log.d(LOG_TAG, "Hidden Theme called");
+						onText = context.getString(R.string.displayTheme);
+					}
+					else {
+						Log.d(LOG_TAG, "Hidden Desktop called");
+						onText = context.getString(R.string.displayDesktop);
+					}
+				}
+				toggleButton.setTextOn(context
+						.getString(R.string.displayBlankOn) + " " + onText);
+				toggleButton.setTextOff(context
+						.getString(R.string.displayBlankOff) + " " + offText);
+				toggleButton.setEnabled(true);
+				toggleButton.setChecked(false);
+				if (poll.isDisplayHidden()) {
+					toggleButton.setChecked(true);
+				}
+			}
+			progressDialog.dismiss();
+			
+			if (error != null && error.trim().length() > 0) {
+				Toast.makeText(context,R.string.connectionFailed, 
+						Toast.LENGTH_LONG).show();				
+				Toast.makeText(context, error, Toast.LENGTH_LONG).show();
+			}
+		}
+	}
+
+	private final String LOG_TAG = Misc.class.getName();
+}

=== added file 'src/org/openlp/android/activity/Preferences.java'
--- src/org/openlp/android/activity/Preferences.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/Preferences.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,45 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import android.os.Bundle;
+import android.preference.PreferenceActivity;
+import android.util.Log;
+import org.openlp.android.R;
+
+/**
+ * Credits: http://www.kaloer.com/android-preferences
+ * http://androidpartaker.wordpress.com/2010/07/11/android-preferences/
+ */
+public class Preferences extends PreferenceActivity {
+	@Override
+	protected void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		Log.d(LOG_TAG, "Launching preferences");
+		getPreferenceManager().setSharedPreferencesName(
+				getString(R.string.keySharedPreferences));
+		addPreferencesFromResource(R.xml.preferences);
+	}
+
+	private final String LOG_TAG = Preferences.class.getName();
+}

=== added file 'src/org/openlp/android/activity/SearchableActivity.java'
--- src/org/openlp/android/activity/SearchableActivity.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/SearchableActivity.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,253 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import android.app.Activity;
+import android.app.AlertDialog;
+import android.app.Dialog;
+import android.app.ProgressDialog;
+import android.app.SearchManager;
+import android.content.DialogInterface;
+import android.content.Intent;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.widget.ExpandableListView;
+import android.widget.Toast;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+import org.openlp.android.R;
+import org.openlp.android.api.Api;
+import org.openlp.android.utility.GroupExpandableListAdapter;
+import org.openlp.android.utility.JSONHandler;
+import org.openlp.android.utility.WebCallAsyncTask;
+import org.openlp.android.utility.WebCallReturningAsyncTask;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class SearchableActivity extends Activity implements Api {
+	private Activity context;
+	private ExpandableListView listView;
+	private final int DIALOG_ITEM_OPTIONS = 0;
+	private Object dialogKey;
+	private JSONArray dialogValue;
+
+	@Override
+	protected void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		setContentView(R.layout.search);
+		context = this;
+		listView = (ExpandableListView) findViewById(R.id.list);
+
+		listView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
+			@SuppressWarnings({ "unchecked" })
+			@Override
+			public boolean onChildClick(ExpandableListView expandableListView,
+					View view, int parent, int childPosition, long l) {
+				Map<String, JSONArray> child = (Map<String, JSONArray>) listView
+						.getExpandableListAdapter().getChild(parent,
+								childPosition);
+				dialogKey = null;
+				dialogValue = null;
+				dialogKey = listView.getExpandableListAdapter()
+						.getGroup(parent);
+				dialogValue = child.get(dialogKey.toString());
+				showDialog(DIALOG_ITEM_OPTIONS);
+				return false;
+			}
+		});
+
+		Intent intent = getIntent();
+		if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
+			String query = intent.getStringExtra(SearchManager.QUERY);
+			doSearch(query);
+		}
+	}
+
+	@Override
+	protected Dialog onCreateDialog(int id) {
+		switch (id) {
+		case DIALOG_ITEM_OPTIONS:
+			AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context);
+			dialogBuilder.setTitle("Item Options:");
+			dialogBuilder.setNegativeButton("Send Live",
+					new DialogInterface.OnClickListener() {
+						@Override
+						public void onClick(DialogInterface dialogInterface,
+								int i) {
+							try {
+								new WebCallAsyncTask(context, String.format(
+										SEARCH_PLUGIN_LIVE, dialogKey))
+										.execute(JSONHandler.createRequestJSON(
+												"id", dialogValue.get(0)
+														.toString()));
+							}
+							catch (Exception e) {
+								Toast.makeText(context, e.getMessage(),
+										Toast.LENGTH_LONG).show();
+							}
+						}
+					});
+			dialogBuilder.setPositiveButton("Add to Service",
+					new DialogInterface.OnClickListener() {
+						@Override
+						public void onClick(DialogInterface dialogInterface,
+								int i) {
+							try {
+								new WebCallAsyncTask(context, String.format(
+										SEARCH_PLUGIN_ADD, dialogKey))
+										.execute(JSONHandler.createRequestJSON(
+												"id", dialogValue.get(0)
+														.toString()));
+							}
+							catch (Exception e) {
+								Toast.makeText(context, e.getMessage(),
+										Toast.LENGTH_LONG).show();
+							}
+							dialogInterface.cancel();
+						}
+					});
+			return dialogBuilder.create();
+		default:
+			return null;
+		}
+	}
+
+	@Override
+	protected void onPrepareDialog(int id, Dialog dialog) {
+		try {
+			dialog.setTitle(dialogValue.get(1).toString());
+		}
+		catch (JSONException e) {
+			e.printStackTrace();
+		}
+	}
+
+	public void doSearch(String search) {
+		new SearchAsync().execute(search);
+	}
+
+	class SearchAsync extends AsyncTask<String, Void, SearchResults> {
+		ProgressDialog progressDialog;
+		String query;
+
+		@Override
+		protected SearchResults doInBackground(String... strings) {
+			query = strings[0];
+			List<String> groups = new ArrayList<String>();
+			List<List<Map<String, JSONArray>>> children = new ArrayList<List<Map<String, JSONArray>>>();
+
+			AsyncTask<String, Void, String> call = new WebCallReturningAsyncTask(
+					context).execute(SEARCHABLE_PLUGINS);
+
+			try {
+				JSONArray array = new JSONObject(call.get().toString())
+						.getJSONObject("results").getJSONArray("items");
+
+				for (int i = 0; i < array.length(); i++) {
+					String pluginString = ((JSONArray) array.get(i)).get(0)
+							.toString();
+					groups.add(pluginString);
+
+					JSONArray resultArray = null;
+
+					AsyncTask<String, Void, String> pluginResults = new WebCallReturningAsyncTask(
+							context, String.format(SEARCH_PLUGIN_FORMATTED,
+									pluginString)).execute(JSONHandler
+							.createRequestJSON("text", query));
+
+					List<Map<String, JSONArray>> list = new ArrayList<Map<String, JSONArray>>();
+					if (pluginResults.get() != null
+							&& pluginResults.get().toString().trim().length() > 0) {
+						resultArray = new JSONObject(pluginResults.get()
+								.toString()).getJSONObject("results")
+								.getJSONArray("items");
+						for (int j = 0; j < resultArray.length(); j++) {
+							Map<String, JSONArray> item = new HashMap<String, JSONArray>();
+							item.put(pluginString,
+									(JSONArray) resultArray.get(j));
+							list.add(item);
+						}
+					}
+					children.add(list);
+				}
+			}
+			catch (Exception e) {
+				Log.e(LOG_TAG, e.toString());
+				Toast.makeText(context, e.getMessage(), Toast.LENGTH_LONG)
+						.show();
+			}
+
+			SearchResults results = new SearchResults();
+			results.setGroups(groups);
+			results.setChildren(children);
+			return results;
+		}
+
+		@Override
+		protected void onPreExecute() {
+			super.onPreExecute();
+			progressDialog = ProgressDialog.show(context, null,
+					getString(R.string.searching));
+		}
+
+		@Override
+		protected void onPostExecute(SearchResults results) {
+			super.onPostExecute(results);
+			listView.setAdapter(new GroupExpandableListAdapter(context, results
+					.getGroups(), results.getChildren()));
+			progressDialog.dismiss();
+			Toast.makeText(context,
+					String.format(getString(R.string.showingResults), query),
+					Toast.LENGTH_SHORT).show();
+		}
+	}
+
+	class SearchResults {
+		List<String> groups;
+		List<List<Map<String, JSONArray>>> children;
+
+		public List<String> getGroups() {
+			return groups;
+		}
+
+		public void setGroups(List<String> groups) {
+			this.groups = groups;
+		}
+
+		public List<List<Map<String, JSONArray>>> getChildren() {
+			return children;
+		}
+
+		public void setChildren(List<List<Map<String, JSONArray>>> children) {
+			this.children = children;
+		}
+	}
+
+	private final String LOG_TAG = this.getClass().getSimpleName();
+}

=== added file 'src/org/openlp/android/activity/Service.java'
--- src/org/openlp/android/activity/Service.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/Service.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,228 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import android.app.Activity;
+import android.app.ProgressDialog;
+import android.content.Intent;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.ListView;
+import android.widget.Toast;
+import org.apache.http.HttpEntity;
+import org.apache.http.HttpResponse;
+import org.openlp.android.R;
+import org.openlp.android.api.Api;
+import org.openlp.android.activity.Slide;
+import org.openlp.android.data.SlideItem;
+import org.openlp.android.utility.JSONHandler;
+import org.openlp.android.utility.OpenLPHttpClient;
+import org.openlp.android.utility.SlideAdapter;
+import org.openlp.android.utility.WebCallAsyncTask;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Activity for managing service objects.
+ */
+public class Service extends DefaultActivity {
+	private final Activity context = this;
+	private ListView listView;
+
+	@Override
+	public void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		Log.i(LOG_TAG, "onCreate");
+
+		setContentView(R.layout.service);
+		listView = (ListView) findViewById(R.id.serviceList);
+		findViewById(R.id.prev).setOnClickListener(
+				new Button.OnClickListener() {
+					@Override
+					public void onClick(View v) {
+						try {
+							new WebCallAsyncTask(context)
+									.execute(SERVICE_PREVIOUS);
+						}
+						catch (Exception e) {
+							Toast.makeText(
+									getApplicationContext(),
+									String.format("%s: %s", e.getClass()
+											.getSimpleName(), e.getMessage()),
+									Toast.LENGTH_SHORT).show();
+						}
+					}
+				});
+
+		findViewById(R.id.next).setOnClickListener(
+				new Button.OnClickListener() {
+					@Override
+					public void onClick(View v) {
+						try {
+							new WebCallAsyncTask(context).execute(SERVICE_NEXT);
+						}
+						catch (Exception e) {
+							Toast.makeText(
+									getApplicationContext(),
+									String.format("%s: %s", e.getClass()
+											.getSimpleName(), e.getMessage()),
+									Toast.LENGTH_SHORT).show();
+						}
+					}
+				});
+
+		listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
+			@Override
+			public void onItemClick(AdapterView<?> adapterView, View view,
+					int i, long l) {
+				try {
+					String service = JSONHandler.createRequestJSON("id",
+							Integer.toString(i));
+					new WebCallAsyncTask(context, SERVICE_SET).execute(service);
+				}
+				catch (JSONHandler.JSONHandlerException e) {
+					Toast.makeText(getApplicationContext(), 
+							String.format("%s: %s", e.getClass()
+							.getSimpleName(), e.getMessage()),
+							Toast.LENGTH_LONG).show();							
+				}
+			}			
+		});
+		
+		listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
+			@Override
+			public boolean onItemLongClick(AdapterView<?> adapterView, View view,
+					int i, long l) {
+				try {
+					String service = JSONHandler.createRequestJSON("id",
+							Integer.toString(i));
+					new WebCallAsyncTask(context, SERVICE_SET).execute(service);
+				}
+				catch (JSONHandler.JSONHandlerException e) {
+					Toast.makeText(getApplicationContext(),					
+							String.format("%s: %s", e.getClass()
+							.getSimpleName(), e.getMessage()),
+							Toast.LENGTH_LONG).show();							
+				}
+				startActivity(new Intent(context, Slide.class));
+				return true;
+			}			
+		});
+	}
+
+	@Override
+	protected void onResume() {
+		super.onResume();
+		Log.d(LOG_TAG, "Resume");
+		new FetchServiceItemsTask(this).execute(SERVICE_LIST);
+	}
+
+	/**
+	 * Asynchronous task to fetch the service items.
+	 */
+	class FetchServiceItemsTask extends AsyncTask<String, Void, SlideItem[]> {
+		Service serviceActivity;
+		ProgressDialog progressDialog;
+		String error;
+
+		FetchServiceItemsTask(Service serviceActivity) {
+			this.serviceActivity = serviceActivity;
+		}
+
+		@Override
+		protected void onPreExecute() {
+			super.onPreExecute();
+			progressDialog = ProgressDialog.show(Service.this,
+					getString(R.string.loading),
+					getString(R.string.loadingServiceItems));
+		}
+
+		@Override
+		protected SlideItem[] doInBackground(String... strings) {
+			OpenLPHttpClient httpClient = new OpenLPHttpClient(
+					getApplicationContext());
+			HttpResponse response = null;
+			error = "";
+
+			Log.d(LOG_TAG, "Processing:" + Arrays.asList(strings));
+			try {
+				httpClient.setUrl(strings[0]);
+				if (httpClient.getUrl().getHost().trim().length() <= 0) {
+					startActivity(new Intent(serviceActivity, Preferences.class));
+				}
+				else {
+					response = httpClient.execute();
+				}
+
+				if (response != null
+						&& response.getStatusLine().getStatusCode() == 200) {
+					HttpEntity entity = response.getEntity();
+
+					if (entity != null) {
+						List<SlideItem> serviceItemList = JSONHandler
+								.parseServiceItemResponseJSON(entity);
+						Log.i(LOG_TAG, String.format("Service Items: %s",
+								serviceItemList));
+						return serviceItemList.toArray(new SlideItem[] {});
+					}
+				}
+				else {
+					error = String.format("%s %s",
+							getString(R.string.unable), response);
+				}
+			}
+			catch (Exception e) {
+				error = String.format("%s: %s", e.getClass()
+						.getSimpleName(), e.getMessage());
+			}
+			return null;
+		}
+
+		@Override
+		protected void onPostExecute(SlideItem[] slides) {
+			super.onPostExecute(slides);
+			if (slides == null) {
+				slides = new SlideItem[] {};
+			}
+			listView.setAdapter(new SlideAdapter(context,
+					Arrays.asList(slides), false));
+			progressDialog.dismiss();
+			
+			if (error != null && error.trim().length() > 0) {
+				Toast.makeText(context,R.string.loadingFailed, 
+						Toast.LENGTH_LONG).show();
+				Log.e(LOG_TAG, error);				
+			}
+		}
+	}
+
+	private final String LOG_TAG = Service.class.getName();
+}

=== added file 'src/org/openlp/android/activity/Slide.java'
--- src/org/openlp/android/activity/Slide.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/Slide.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,210 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import android.app.Activity;
+import android.app.ProgressDialog;
+import android.content.Intent;
+import android.os.AsyncTask;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.ListView;
+import android.widget.Toast;
+import org.apache.http.HttpEntity;
+import org.apache.http.HttpResponse;
+import org.openlp.android.R;
+import org.openlp.android.api.Api;
+import org.openlp.android.utility.JSONHandler;
+import org.openlp.android.utility.OpenLPHttpClient;
+import org.openlp.android.utility.SlideAdapter;
+import org.openlp.android.utility.WebCallAsyncTask;
+
+import java.util.Arrays;
+import java.util.List;
+
+public class Slide extends DefaultActivity {
+	private final Activity context = this;
+	private ListView slideList;
+
+	public void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		Log.d(LOG_TAG, "onCreate");
+		setContentView(R.layout.slide);
+
+		slideList = (ListView) findViewById(R.id.list);
+
+		findViewById(R.id.prev).setOnClickListener(
+				new Button.OnClickListener() {
+					public void onClick(View v) {
+						try {
+							new WebCallAsyncTask(context)
+									.execute(LIVE_PREVIOUS);
+						}
+						catch (Exception e) {
+							Toast.makeText(
+									getApplicationContext(),
+									String.format("%s: %s", e.getClass()
+											.getSimpleName(), e.getMessage()),
+									Toast.LENGTH_SHORT).show();
+							Log.e(LOG_TAG, e.toString(), e);
+						}
+					}
+				});
+
+		findViewById(R.id.next).setOnClickListener(
+				new Button.OnClickListener() {
+					public void onClick(View v) {
+						try {
+							new WebCallAsyncTask(context).execute(LIVE_NEXT);
+						}
+						catch (Exception e) {
+							Toast.makeText(context,R.string.loadingFailed, 
+									Toast.LENGTH_LONG).show();
+							Log.e(LOG_TAG, String.format("%s: %s", e.getClass()
+									.getSimpleName(), e.getMessage()), e);
+						}
+					}
+				});
+
+		slideList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
+			@Override
+			public void onItemClick(AdapterView<?> adapterView, View view,
+					int i, long l) {
+				try {
+					String alert = JSONHandler.createRequestJSON("id",
+							Integer.toString(i));
+					new WebCallAsyncTask(context, LIVE_SET).execute(alert);
+				}
+				catch (Exception e) {
+					try {
+						throw new JSONHandler.JSONHandlerException(e);
+					}
+					catch (JSONHandler.JSONHandlerException e1) {
+						Toast.makeText(getApplicationContext(),						
+								String.format("%s: %s", e1.getClass()
+								.getSimpleName(), e1.getMessage()),
+								Toast.LENGTH_LONG).show();								
+					}
+				}
+			}
+		});
+
+	}
+
+	@Override
+	protected void onResume() {
+		super.onResume();
+		Log.d(LOG_TAG, "Resume");
+
+		new FetchSlideItemsTask(this).execute(LIVE_TEXT);
+	}
+
+	class FetchSlideItemsTask extends
+			AsyncTask<String, Void, org.openlp.android.data.SlideItem[]> {
+		Slide slideActivity;
+		ProgressDialog progressDialog;
+		String error;
+
+		FetchSlideItemsTask(Slide slideActivity) {
+			this.slideActivity = slideActivity;
+		}
+
+		@Override
+		protected void onPreExecute() {
+			super.onPreExecute();
+			progressDialog = ProgressDialog.show(Slide.this,
+					getString(R.string.loading),
+					getString(R.string.loadingSlideItems));
+		}
+
+		@Override
+		protected org.openlp.android.data.SlideItem[] doInBackground(
+				String... strings) {
+			OpenLPHttpClient httpClient = new OpenLPHttpClient(
+					getApplicationContext());
+			HttpResponse response = null;
+			error = "";
+
+			Log.d(LOG_TAG, "Processing:" + Arrays.asList(strings));
+			try {
+				httpClient.setUrl(strings[0]);
+				if (httpClient.getUrl().getHost().trim().length() <= 0) {
+					startActivity(new Intent(slideActivity, Preferences.class));
+				}
+				else {
+					response = httpClient.execute();
+				}
+
+				if (response != null
+						&& response.getStatusLine().getStatusCode() == 200) {
+					HttpEntity entity = response.getEntity();
+
+					if (entity != null) {
+						List<org.openlp.android.data.SlideItem> slideItemList = JSONHandler
+								.parseSlideItemResponseJSON(entity);
+						Log.d(LOG_TAG,
+								String.format("slides: %s", slideItemList));
+						return slideItemList
+								.toArray(new org.openlp.android.data.SlideItem[] {});
+					}
+				}
+				else {
+					error = String.format("%s %s",
+							getString(R.string.unable), response);
+				}
+			}
+			catch (Exception ex) {
+				Log.d(LOG_TAG, String.format("%s: %s", ex.getClass()
+						.getSimpleName(), ex.getMessage()));
+				error = String.format("%s",
+						getString(R.string.connectionTimedout));
+			}
+			return null;
+		}
+
+		@Override
+		protected void onPostExecute(org.openlp.android.data.SlideItem[] slides) {
+			super.onPostExecute(slides);
+			if (slides == null) {
+				slides = new org.openlp.android.data.SlideItem[] {};
+			}
+			slideList.setAdapter(new SlideAdapter(context, Arrays
+					.asList(slides)));
+			progressDialog.dismiss();
+
+			if (error != null && error.trim().length() > 0) {
+				Toast.makeText(context,R.string.loadingFailed, 
+						Toast.LENGTH_LONG).show();
+				Log.e(LOG_TAG, error);	
+			}
+		}
+	}
+
+	private final String LOG_TAG = Slide.class.getName();
+}

=== added file 'src/org/openlp/android/activity/StageView.java'
--- src/org/openlp/android/activity/StageView.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/activity/StageView.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,77 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.activity;
+
+import org.openlp.android.R;
+import org.openlp.android.api.Api;
+
+import android.app.Activity;
+import android.content.Context;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
+import android.webkit.WebSettings;
+import android.webkit.WebView;
+
+
+public class StageView extends DefaultActivity {
+	private final Context context = this;
+	private SharedPreferences preferences;
+
+	public void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		Log.d(LOG_TAG, "onCreate");
+		setContentView(R.layout.stageview);
+		preferences = getApplicationContext().getSharedPreferences(
+				getApplicationContext()
+				.getString(R.string.keySharedPreferences),
+				Context.MODE_PRIVATE);		
+	}
+
+	@Override
+	protected void onResume() {
+		super.onResume();
+		Log.d(LOG_TAG, "Resume");
+		WebView myWebView = (WebView) findViewById(R.id.stageview);
+		WebSettings webSettings = myWebView.getSettings();
+		webSettings.setJavaScriptEnabled(true);
+		webSettings.setBuiltInZoomControls(true);
+		webSettings.setLoadWithOverviewMode(true);
+		webSettings.setUseWideViewPort(true);
+		myWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
+		myWebView.setScrollbarFadingEnabled(true);		
+		String urlBase = String.format("http://%s:%s/stage";, preferences.getString(
+				context.getString(R.string.keyHost),
+				context.getString(R.string.hostDefaultValue)), preferences
+				.getString(context.getString(R.string.keyPort),
+						context.getString(R.string.portDefaultValue)));	
+		Log.d(LOG_TAG, urlBase);
+		myWebView.loadUrl(urlBase);		
+	}
+
+	private final String LOG_TAG = StageView.class.getName();
+}

=== added directory 'src/org/openlp/android/api'
=== added file 'src/org/openlp/android/api/Api.java'
--- src/org/openlp/android/api/Api.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/api/Api.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,122 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.api;
+
+/**
+ * <h1>Routes:</h1>
+ * <p/>
+ * 
+ * <pre>
+ * ``/``
+ * Go to the web interface.
+ * 
+ * ``/files/{filename}``
+ * 
+ * ``/api/poll``
+ * {"results": {"type": "controller"}}
+ * Or, if there were no results, False::
+ * {"results": False}
+ * 
+ * ``/api/display/{hide|show}``
+ * Blank or unblank the screen.
+ * 
+ * ``/api/alert``
+ * {"request": {"text": "<your alert text>"}}
+ * ``/api/controller/{live|preview}/{action}``
+ * ``next``
+ * Load the next slide.
+ * 
+ * ``previous``
+ * Load the previous slide.
+ * 
+ * ``set``
+ * Set a specific slide. Requires an id return in a JSON-encoded dict like
+ * this::
+ * 
+ * {"request": {"id": 1}}
+ * 
+ * ``first``
+ * Load the first slide.
+ * 
+ * ``last``
+ * Load the last slide.
+ * 
+ * ``text``
+ * Fetches the text of the current song. The output is a JSON-encoded
+ * dict which looks like this::
+ * 
+ * {"result": {"slides": ["...", "..."]}}
+ * 
+ * ``/api/service/{action}``
+ * Perform ``{action}`` on the service manager (e.g. go live). Data is
+ * passed as a json-encoded ``data`` parameter. Valid actions are:
+ * 
+ * ``next``
+ * Load the next item in the service.
+ * 
+ * ``previous``
+ * 
+ * ``set``
+ * Set a specific item in the service. Requires an id returned in a
+ * JSON-encoded dict like this::
+ * 
+ * {"request": {"id": 1}}
+ * 
+ * ``list``
+ * Request a list of items in the service. Returns a list of items in the
+ * current service in a JSON-encoded dict like this::
+ * 
+ * {"results": {"items": [{...}, {...}]}}
+ * """
+ * </pre>
+ */
+
+public interface Api {
+
+	public final String LIVE_NEXT = "/api/controller/live/next";
+	public final String LIVE_PREVIOUS = "/api/controller/live/previous";
+	public final String LIVE_TEXT = "/api/controller/live/text";
+	public final String LIVE_SET = "/api/controller/live/set?data=";
+
+	public final String SERVICE_NEXT = "/api/service/next";
+	public final String SERVICE_PREVIOUS = "/api/service/previous";
+	public final String SERVICE_LIST = "/api/service/list";
+	public final String SERVICE_SET = "/api/service/set?data=";
+
+	public final String DISPLAY_HIDE_SCREEN = "/api/display/blank";
+	public final String DISPLAY_HIDE_THEME = "/api/display/theme";
+	public final String DISPLAY_HIDE_DESKTOP = "/api/display/desktop";
+	public final String DISPLAY_SHOW = "/api/display/show";
+	public final String POLL_STATUS = "/api/poll";
+
+	public final String ALERT = "/api/alert?data=";
+
+	public final String SEARCHABLE_PLUGINS = "/api/plugin/search";
+	/**
+	 * This is a special string that uses the String.format() method. See
+	 * {@link String#format(String, Object...)}
+	 */
+	public final String SEARCH_PLUGIN_FORMATTED = "/api/%s/search?data=";
+	public final String SEARCH_PLUGIN_LIVE = "/api/%s/live?data=";
+	public final String SEARCH_PLUGIN_ADD = "/api/%s/add?data=";
+}

=== added directory 'src/org/openlp/android/data'
=== added file 'src/org/openlp/android/data/Poll.java'
--- src/org/openlp/android/data/Poll.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/data/Poll.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,100 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+
+package org.openlp.android.data;
+
+public class Poll {
+
+	private int slide;
+	private String item;
+	private boolean twelveHourDisplay = false;;
+	private boolean blankedDisplayed = false;;
+	private boolean themeDisplayed = false;;
+	private boolean desktopDisplayed = false;
+	private boolean displayHidden = false;
+
+	public int getSlide() {
+		return slide;
+	}
+
+	public void setSlide(int slide) {
+		this.slide = slide;
+	}
+
+	public String getItem() {
+		return item;
+	}
+
+	public void setItem(String item) {
+		this.item = item;
+	}
+
+	public boolean isTwelveHourDisplay() {
+		return twelveHourDisplay;
+	}
+
+	public void setTwelveHourDisplay(boolean twelveHourDisplay) {
+		this.twelveHourDisplay = twelveHourDisplay;
+	}
+
+	public boolean isBlankedDisplayed() {
+		return blankedDisplayed;
+	}
+
+	public void setBlankedDisplayed(boolean blankedDisplayed) {
+		this.blankedDisplayed = blankedDisplayed;
+		if (blankedDisplayed) {
+			this.displayHidden = true;
+		}
+	}
+
+	public boolean isThemeDisplayed() {
+		return themeDisplayed;
+	}
+
+	public void setThemeDisplayed(boolean themeDisplayed) {
+		this.themeDisplayed = themeDisplayed;
+		if (themeDisplayed) {
+			this.displayHidden = true;
+		}
+	}
+
+	public boolean isDesktopDisplayed() {
+		return desktopDisplayed;
+	}
+
+	public void setDesktopDisplayed(boolean desktopDisplayed) {
+		this.desktopDisplayed = desktopDisplayed;
+		if (desktopDisplayed) {
+			this.displayHidden = true;
+		}
+	}
+
+	public boolean isDisplayHidden() {
+		return displayHidden;
+	}
+
+	public void setDisplayHidden(boolean displayHidden) {
+		this.displayHidden = displayHidden;
+	}
+}

=== added file 'src/org/openlp/android/data/SlideItem.java'
--- src/org/openlp/android/data/SlideItem.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/data/SlideItem.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,68 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.data;
+
+public class SlideItem {
+	private String text;
+	private boolean selected;
+	private String tag;
+	private String html;
+
+	public String getText() {
+		return text;
+	}
+
+	public void setText(String text) {
+		this.text = text;
+	}
+
+	public boolean isSelected() {
+		return selected;
+	}
+
+	public void setSelected(boolean selected) {
+		this.selected = selected;
+	}
+
+	public String getTag() {
+		return tag;
+	}
+
+	public void setTag(String tag) {
+		this.tag = tag;
+	}
+
+	public String getHtml() {
+		return html;
+	}
+
+	public void setHtml(String html) {
+		this.html = html;
+	}
+
+	@Override
+	public String toString() {
+		return "SlidePOJO{" + "text='" + text + '\'' + ", selected=" + selected
+				+ ", tag='" + tag + '\'' + ", html='" + html + '\'' + '}';
+	}
+}

=== added directory 'src/org/openlp/android/service'
=== added file 'src/org/openlp/android/service/PingService.java'
--- src/org/openlp/android/service/PingService.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/service/PingService.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,38 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.service;
+
+import android.os.Bundle;
+import org.openlp.android.activity.Service;
+
+public class PingService extends Service {
+	@Override
+	public void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+	}
+
+	@Override
+	protected void onResume() {
+		super.onResume();
+	}
+}

=== added directory 'src/org/openlp/android/utility'
=== added file 'src/org/openlp/android/utility/GroupExpandableListAdapter.java'
--- src/org/openlp/android/utility/GroupExpandableListAdapter.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/utility/GroupExpandableListAdapter.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,127 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.utility;
+
+import android.app.Activity;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseExpandableListAdapter;
+import android.widget.TextView;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.openlp.android.R;
+
+import java.util.List;
+import java.util.Map;
+
+public class GroupExpandableListAdapter extends BaseExpandableListAdapter {
+	List<String> groups;
+	List<List<Map<String, JSONArray>>> children;
+	LayoutInflater inflater;
+	Activity context;
+
+	public GroupExpandableListAdapter(Activity context, List<String> groups,
+			List<List<Map<String, JSONArray>>> children) {
+		this.context = context;
+		this.groups = groups;
+		this.children = children;
+		inflater = context.getLayoutInflater();
+	}
+
+	@Override
+	public int getGroupCount() {
+		return groups.size();
+	}
+
+	@Override
+	public int getChildrenCount(int position) {
+		return children.get(position).size();
+	}
+
+	@Override
+	public Object getGroup(int position) {
+		return groups.get(position);
+	}
+
+	@Override
+	public Object getChild(int rootPosition, int childPosition) {
+		return children.get(rootPosition).get(childPosition);
+	}
+
+	@Override
+	public long getGroupId(int position) {
+		return groups.indexOf(groups.get(position));
+	}
+
+	@Override
+	public long getChildId(int i, int i1) {
+		List<Map<String, JSONArray>> child = children.get(i);
+		return child.indexOf(child.get(i1));
+	}
+
+	@Override
+	public boolean hasStableIds() {
+		return false;
+	}
+
+	@Override
+	public View getGroupView(int position, boolean b, View view,
+			ViewGroup viewGroup) {
+		if (view == null) {
+			view = inflater.inflate(R.layout.group_parent, null);
+			view.setClickable(false);
+		}
+		TextView textView = (TextView) view.findViewById(R.id.groupParentText);
+		TextView numberView = (TextView) view
+				.findViewById(R.id.parentChildCount);
+		numberView.setText(String.format("%s", children.get(position).size()));
+		textView.setText(groups.get(position));
+		return view;
+	}
+
+	@Override
+	public View getChildView(int groupPosition, int childPosition, boolean b,
+			View view, ViewGroup viewGroup) {
+		if (view == null) {
+			view = inflater.inflate(R.layout.group_child, null);
+			view.setClickable(false);
+		}
+		TextView childView = (TextView) view.findViewById(R.id.groupChildText);
+		List<Map<String, JSONArray>> childItem = children.get(groupPosition);
+		Map<String, JSONArray> mapItem = childItem.get(childPosition);
+		JSONArray jsonItem = mapItem.get(groups.get(groupPosition));
+		try {
+			childView.setText(String.format("%s", jsonItem.get(1)));
+		}
+		catch (JSONException e) {
+			e.printStackTrace();
+		}
+		return view;
+	}
+
+	@Override
+	public boolean isChildSelectable(int i, int i1) {
+		return true;
+	}
+}

=== added file 'src/org/openlp/android/utility/JSONHandler.java'
--- src/org/openlp/android/utility/JSONHandler.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/utility/JSONHandler.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,170 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.utility;
+
+import android.util.Log;
+import org.apache.http.HttpEntity;
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+import org.json.JSONStringer;
+import org.openlp.android.data.Poll;
+import org.openlp.android.data.SlideItem;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.util.ArrayList;
+import java.util.List;
+
+public class JSONHandler {
+
+	public static String createRequestJSON(String key, String value)
+			throws JSONHandlerException {
+		try {
+			String responseJSON;
+			JSONObject jo = new JSONObject();
+			jo.put(key, value);
+			responseJSON = new JSONStringer().object().key("request").value(jo)
+					.endObject().toString();
+			responseJSON = URLEncoder.encode(responseJSON, "UTF-8");
+			return responseJSON;
+		}
+		catch (JSONException e) {
+			throw new JSONHandlerException(e);
+		}
+		catch (UnsupportedEncodingException e) {
+			throw new JSONHandlerException(e);
+		}
+	}
+
+	public static List<SlideItem> parseServiceItemResponseJSON(HttpEntity entity)
+			throws JSONHandlerException {
+		try {
+			List<SlideItem> serviceItemList = new ArrayList<SlideItem>();
+			InputStream inputStream = entity.getContent();
+			String result = StringHelper.convertStreamToString(inputStream);
+			Log.i(LOG_TAG, result);
+
+			JSONObject jObject = new JSONObject(result);
+			JSONObject results = jObject.getJSONObject("results");
+			JSONArray items = results.getJSONArray("items");
+
+			for (int i = 0; i < items.length(); i++) {
+				JSONObject item = items.getJSONObject(i);
+				SlideItem slide = new SlideItem();
+				slide.setTag("");
+				slide.setText(item.getString("title"));
+				slide.setSelected(item.getBoolean("selected"));
+				slide.setHtml("");
+				serviceItemList.add(slide);
+			}
+
+			inputStream.close();
+			return serviceItemList;
+		}
+		catch (IOException e) {
+			throw new JSONHandlerException(e);
+		}
+		catch (JSONException e) {
+			throw new JSONHandlerException(e);
+		}
+
+	}
+
+	public static List<SlideItem> parseSlideItemResponseJSON(HttpEntity entity)
+			throws JSONHandlerException {
+		try {
+			List<SlideItem> serviceItemList = new ArrayList<SlideItem>();
+			InputStream inputStream = entity.getContent();
+			String result = StringHelper.convertStreamToString(inputStream);
+			Log.i(LOG_TAG, result);
+
+			JSONObject jObject = new JSONObject(result);
+			JSONObject results = jObject.getJSONObject("results");
+			JSONArray items = results.getJSONArray("slides");
+
+			for (int i = 0; i < items.length(); i++) {
+				JSONObject item = items.getJSONObject(i);
+				SlideItem slide = new SlideItem();
+				slide.setText(item.getString("text"));
+				slide.setTag(item.getString("tag"));
+				slide.setSelected(item.getBoolean("selected"));
+				slide.setHtml(item.getString("html"));
+				serviceItemList.add(slide);
+			}
+
+			inputStream.close();
+			return serviceItemList;
+		}
+		catch (IOException e) {
+			throw new JSONHandlerException(e);
+		}
+		catch (JSONException e) {
+			throw new JSONHandlerException(e);
+		}
+	}
+
+	public static Poll parsePollResponseJSON(HttpEntity entity)
+			throws JSONHandlerException {
+		try {
+			InputStream inputStream = entity.getContent();
+			String result = StringHelper.convertStreamToString(inputStream);
+			Log.i(LOG_TAG, result);
+
+			JSONObject jObject = new JSONObject(result);
+			JSONObject results = jObject.getJSONObject("results");
+			// JSONArray items = results.getJSONArray("slides");
+			Poll poll = new Poll();
+			poll.setSlide(results.getInt("slide"));
+			poll.setItem(results.getString("item"));
+			poll.setTwelveHourDisplay(results.getBoolean("twelve"));
+			poll.setBlankedDisplayed(results.getBoolean("blank"));
+			poll.setThemeDisplayed(results.getBoolean("theme"));
+			poll.setDesktopDisplayed(results.getBoolean("display"));
+			Log.d(LOG_TAG, poll.toString());
+			inputStream.close();
+			return poll;
+		}
+		catch (IOException e) {
+			throw new JSONHandlerException(e);
+		}
+		catch (JSONException e) {
+			throw new JSONHandlerException(e);
+		}
+	}
+
+	public static class JSONHandlerException extends Exception {
+		/**
+		 * 
+		 */
+		private static final long serialVersionUID = -6772307308404816615L;
+
+		public JSONHandlerException(Throwable throwable) {
+			super(throwable);
+		}
+	}
+
+	private static String LOG_TAG = JSONHandler.class.getName();
+}

=== added file 'src/org/openlp/android/utility/OpenLPHttpClient.java'
--- src/org/openlp/android/utility/OpenLPHttpClient.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/utility/OpenLPHttpClient.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,109 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.utility;
+
+import android.content.Context;
+import android.content.SharedPreferences;
+import android.util.Log;
+import org.apache.http.HttpResponse;
+import org.apache.http.client.methods.HttpGet;
+import org.apache.http.impl.client.DefaultHttpClient;
+import org.apache.http.params.BasicHttpParams;
+import org.apache.http.params.HttpConnectionParams;
+import org.apache.http.params.HttpParams;
+import org.openlp.android.R;
+
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+
+/**
+ * Personalised HttpClient to be used throughout OpenLP with customisable
+ * parameters.
+ */
+public class OpenLPHttpClient extends DefaultHttpClient {
+
+	private HttpGet httpGet;
+	private URL url;
+	private final String urlBase;
+
+	public OpenLPHttpClient(Context context) {
+		SharedPreferences preferences = context.getSharedPreferences(
+				context.getString(R.string.keySharedPreferences),
+				Context.MODE_PRIVATE);
+
+		Log.d(LOG_TAG, preferences.getAll().toString());
+		HttpParams httpParams = new BasicHttpParams();
+
+		urlBase = String.format("http://%s:%s";, preferences.getString(
+				context.getString(R.string.keyHost),
+				context.getString(R.string.hostDefaultValue)), preferences
+				.getString(context.getString(R.string.keyPort),
+						context.getString(R.string.portDefaultValue)));
+
+		int connectionTimeout = context.getResources().getInteger(
+				R.integer.connectionTimeoutDefaultValue);
+		int socketTimeout = context.getResources().getInteger(
+				R.integer.socketTimeoutDefaultValue);
+
+		if (preferences.getBoolean(
+				context.getString(R.string.keyEnableCustomTimeout), false)) {
+			Log.d(LOG_TAG, String.format("Retrieving values for %s and %s...",
+					context.getString(R.string.keyConnectionTimeout),
+					context.getString(R.string.keySocketTimeout)));
+			connectionTimeout = Integer.parseInt(preferences.getString(
+					context.getString(R.string.keyConnectionTimeout),
+					String.valueOf(context.getResources().getInteger(
+							R.integer.connectionTimeoutDefaultValue))));
+			socketTimeout = Integer.parseInt(preferences.getString(
+					context.getString(R.string.keySocketTimeout),
+					String.valueOf(context.getResources().getInteger(
+							R.integer.socketTimeoutDefaultValue))));
+		}
+		HttpConnectionParams
+				.setConnectionTimeout(httpParams, connectionTimeout);
+		HttpConnectionParams.setSoTimeout(httpParams, socketTimeout);
+
+		setParams(httpParams);
+
+		httpGet = new HttpGet();
+	}
+
+	public URL getUrl() {
+		return url;
+	}
+
+	public void setUrl(String apiPart) throws URISyntaxException,
+			MalformedURLException {
+		url = new URL(urlBase.concat(apiPart));
+		Log.d(LOG_TAG, "URL set to: " + url);
+		httpGet.setURI(getUrl().toURI());
+	}
+
+	public HttpResponse execute() throws IOException {
+		return super.execute(httpGet);
+	}
+
+	private final String LOG_TAG = OpenLPHttpClient.class.getName();
+}

=== added file 'src/org/openlp/android/utility/SlideAdapter.java'
--- src/org/openlp/android/utility/SlideAdapter.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/utility/SlideAdapter.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,134 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.utility;
+
+import java.util.List;
+
+import org.openlp.android.R;
+import org.openlp.android.data.SlideItem;
+
+import android.app.Activity;
+import android.content.Context;
+import android.content.SharedPreferences;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+import android.widget.TextView;
+
+public class SlideAdapter extends BaseAdapter {
+	List<SlideItem> items;
+	Activity context;
+	LayoutInflater inflater;
+	boolean useTagDisplay = true;
+	private int[] colors = new int[] { 0x74717000, 0x00000000 };
+	SharedPreferences prefs;	
+
+	public SlideAdapter(Activity context, List<SlideItem> items) {
+		this.context = context;
+		this.items = items;
+		inflater = context.getLayoutInflater();
+		
+		prefs = context.getSharedPreferences(
+				context.getString(R.string.keySharedPreferences),
+				Context.MODE_PRIVATE);
+
+	
+		Log.d(LOG_TAG, "xx2 " + prefs.getAll().toString());		
+	}
+
+	public SlideAdapter(Activity context, List<SlideItem> items,
+			boolean useTagDisplay) {
+		this.context = context;
+		this.items = items;
+		this.useTagDisplay = useTagDisplay;
+		inflater = context.getLayoutInflater();
+		
+		prefs = context.getSharedPreferences(
+				context.getString(R.string.keySharedPreferences),
+				Context.MODE_PRIVATE);		
+	}
+
+	@Override
+	public int getCount() {
+		return items.size();
+	}
+
+	@Override
+	public Object getItem(int i) {
+		return items.get(i);
+	}
+
+	@Override
+	public long getItemId(int i) {
+		return items.indexOf(items.get(i));
+	}
+	
+	@Override
+	public View getView(int position, View convertView, ViewGroup parent) {
+		ViewHolder holder;
+		View view = convertView;
+
+		SlideItem item = items.get(position);
+
+		if (view == null) {
+			view = inflater.inflate(R.layout.slide_list_item, null);
+			holder = new ViewHolder();
+
+			holder.rowMarker = (TextView) view.findViewById(R.id.rowItemMarker);
+			holder.rowItem = (TextView) view.findViewById(R.id.rowItemText);
+
+			view.setTag(holder);
+		}
+		else {
+			holder = (ViewHolder) view.getTag();
+		}
+
+		Log.d(LOG_TAG," " + context.getString(R.string.keyTextSize));
+		
+		int size = Integer.parseInt(prefs.getString(
+				context.getString(R.string.keyTextSize),
+				String.valueOf(context.getResources().getInteger(
+						R.integer.textSizeDefaultValue))));		
+
+		holder.rowMarker.setText(item.getTag());
+		holder.rowItem.setText(item.getText());
+		holder.rowItem.setTextSize(size);
+		
+		if (useTagDisplay) {
+			holder.rowMarker.setMinWidth(40);
+		}
+		
+		int colorPos = position % colors.length;
+		view.setBackgroundColor(colors[colorPos]);
+		
+		return view;
+	}
+
+	static class ViewHolder {
+		TextView rowMarker;
+		TextView rowItem;
+	}
+	private final String LOG_TAG = SlideAdapter.class.getName();	
+}

=== added file 'src/org/openlp/android/utility/StringHelper.java'
--- src/org/openlp/android/utility/StringHelper.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/utility/StringHelper.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,64 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.utility;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
+/**
+ * String helper utility to do common string processing.
+ */
+public class StringHelper {
+	public synchronized static String convertStreamToString(InputStream is) {
+		/*
+		 * To convert the InputStream to String we use the
+		 * BufferedReader.readLine() method. We iterate until the BufferedReader
+		 * return null which means there's no more data to read. Each line will
+		 * appended to a StringBuilder and returned as String.
+		 */
+
+		BufferedReader reader = new BufferedReader(new InputStreamReader(is));
+		StringBuilder sb = new StringBuilder();
+
+		String line = null;
+		try {
+			while ((line = reader.readLine()) != null) {
+				sb.append(line + "\n");
+			}
+		}
+		catch (IOException e) {
+			e.printStackTrace();
+		} finally {
+			try {
+				is.close();
+			}
+			catch (IOException e) {
+				e.printStackTrace();
+			}
+		}
+		return sb.toString();
+	}
+
+}

=== added file 'src/org/openlp/android/utility/WebCallAsyncTask.java'
--- src/org/openlp/android/utility/WebCallAsyncTask.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/utility/WebCallAsyncTask.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,92 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.utility;
+
+import android.app.ProgressDialog;
+import android.content.Context;
+import android.os.AsyncTask;
+import android.util.Log;
+import android.widget.Toast;
+import org.openlp.android.R;
+
+/**
+ * Call URL's using this task, which provides visual feedback.
+ */
+public class WebCallAsyncTask extends AsyncTask<String, Void, Void> {
+	private Context context;
+	private ProgressDialog progressDialog;
+	private String error;
+	private String apiPart;
+
+	public WebCallAsyncTask(Context context) {
+		this.context = context;
+	}
+
+	public WebCallAsyncTask(Context context, String apiPart) {
+		this.context = context;
+		this.apiPart = apiPart;
+	}
+
+	@Override
+	protected void onPreExecute() {
+		super.onPreExecute();
+		progressDialog = ProgressDialog.show(context, "",
+				context.getString(R.string.loading));
+	}
+
+	@Override
+	protected Void doInBackground(String... apiCall) {
+		OpenLPHttpClient httpClient = new OpenLPHttpClient(context);
+		try {
+			if (apiPart == null) {
+				httpClient.setUrl(apiCall[0]);
+			}
+			else {
+				httpClient.setUrl(String.format("%s%s", apiPart, apiCall[0]));
+			}
+
+			Log.d(LOG_TAG, "Executing request: "
+					+ httpClient.getUrl().toString());
+			if (httpClient.getUrl().getHost() != null) {
+				httpClient.execute();
+			}
+		}
+		catch (Exception e) {
+			Log.e(LOG_TAG, e.toString());
+			error = String.format("%s: %s", e.getClass().getSimpleName(),
+					e.getMessage());
+		}
+		return null;
+	}
+
+	@Override
+	protected void onPostExecute(Void aVoid) {
+		super.onPostExecute(aVoid);
+		progressDialog.dismiss();
+		if (error != null && error.trim().length() > 0) {
+			Toast.makeText(context, error, Toast.LENGTH_LONG).show();
+		}
+	}
+
+	private final String LOG_TAG = WebCallAsyncTask.class.getName();
+}

=== added file 'src/org/openlp/android/utility/WebCallReturningAsyncTask.java'
--- src/org/openlp/android/utility/WebCallReturningAsyncTask.java	1970-01-01 00:00:00 +0000
+++ src/org/openlp/android/utility/WebCallReturningAsyncTask.java	2012-02-08 06:21:19 +0000
@@ -0,0 +1,111 @@
+/******************************************************************************
+ * OpenLP - Open Source Lyrics Projection                                      *
+ * --------------------------------------------------------------------------- *
+ * Copyright (c) 2008-2012 Raoul Snyman                                        *
+ * Portions copyright (c) 2008-2012 Tim Bentley, Jonathan Corwin, Michael      *
+ * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler,        *
+ * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout,      *
+ * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund             *
+ * --------------------------------------------------------------------------- *
+ * 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; version 2 of the License.                              *
+ *                                                                             *
+ * 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.                                                               *
+ *                                                                             *
+ * 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., 59  *
+ * Temple Place, Suite 330, Boston, MA 02111-1307 USA                          *
+ *******************************************************************************/
+package org.openlp.android.utility;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.AsyncTask;
+import android.util.Log;
+import android.widget.Toast;
+import org.apache.http.HttpEntity;
+import org.apache.http.HttpResponse;
+import org.openlp.android.activity.Preferences;
+
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+
+public class WebCallReturningAsyncTask extends AsyncTask<String, Void, String> {
+	private Activity context;
+	private String apiPart;
+
+	public WebCallReturningAsyncTask(Activity context) {
+		this.context = context;
+	}
+
+	public WebCallReturningAsyncTask(Activity context, String apiPart) {
+		this.context = context;
+		this.apiPart = apiPart;
+	}
+
+	@Override
+	protected String doInBackground(String... apiCall) {
+		OpenLPHttpClient httpClient = new OpenLPHttpClient(context);
+		HttpResponse response = null;
+
+		try {
+			if (apiPart == null) {
+				httpClient.setUrl(apiCall[0]);
+			}
+			else {
+				httpClient.setUrl(String.format("%s%s", apiPart, apiCall[0]));
+			}
+
+			if (httpClient.getUrl().getHost().trim().length() <= 0) {
+				context.startActivity(new Intent(context, Preferences.class));
+			}
+			else {
+				response = httpClient.execute();
+			}
+
+			if (response != null
+					&& response.getStatusLine().getStatusCode() == 200) {
+				HttpEntity entity = response.getEntity();
+
+				if (entity != null) {
+					BufferedReader bufferedReader = new BufferedReader(
+							new InputStreamReader(entity.getContent()));
+					StringBuilder stringBuilder = new StringBuilder();
+
+					String line = bufferedReader.readLine();
+					while (line != null) {
+						stringBuilder.append(line);
+						line = bufferedReader.readLine();
+					}
+
+					Log.i(LOG_TAG,
+							String.format("entity: %s",
+									stringBuilder.toString()));
+					bufferedReader.close();
+					return stringBuilder.toString();
+				}
+			}
+		}
+		catch (Exception e) {
+			Log.e(LOG_TAG, e.toString());
+			Toast.makeText(context, e.getMessage(), Toast.LENGTH_LONG).show();
+		}
+		return null;
+	}
+
+	@Override
+	protected void onPreExecute() {
+		super.onPreExecute();
+	}
+
+	@Override
+	protected void onPostExecute(String s) {
+		super.onPostExecute(s);
+	}
+
+	private final String LOG_TAG = this.getClass().getName();
+}