first commit
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..467634d
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,16 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+# Only compile source java files in this apk.
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := Protips
+
+LOCAL_SDK_VERSION := current
+
+include $(BUILD_PACKAGE)
+
+# Use the following include to make our test apk.
+include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
new file mode 100644
index 0000000..145aee1
--- /dev/null
+++ b/AndroidManifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.protips"
+ android:versionCode="1"
+ android:versionName="1.0">
+
+ <uses-sdk android:minSdkVersion="3" />
+ <application android:label="@string/widget_name"
+ android:icon="@drawable/icon">
+ <receiver android:name=".ProtipWidget" android:label="@string/widget_name">
+ <intent-filter>
+ <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
+ <action android:name="com.android.protips.NEXT_TIP" />
+ <action android:name="com.android.protips.HEE_HEE" />
+ </intent-filter>
+ <intent-filter>
+ <action android:name="android.provider.Telephony.SECRET_CODE" />
+ <data android:scheme="android_secret_code" android:host="8477" />
+ </intent-filter>
+ <meta-data android:name="android.appwidget.provider" android:resource="@xml/widget_build" />
+ </receiver>
+ </application>
+</manifest>
diff --git a/CleanSpec.mk b/CleanSpec.mk
new file mode 100644
index 0000000..b84e1b6
--- /dev/null
+++ b/CleanSpec.mk
@@ -0,0 +1,49 @@
+# Copyright (C) 2007 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# If you don't need to do a full clean build but would like to touch
+# a file or delete some intermediate files, add a clean step to the end
+# of the list. These steps will only be run once, if they haven't been
+# run before.
+#
+# E.g.:
+# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
+# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
+#
+# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
+# files that are missing or have been moved.
+#
+# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
+# Use $(OUT_DIR) to refer to the "out" directory.
+#
+# If you need to re-do something that's already mentioned, just copy
+# the command and add it to the bottom of the list. E.g., if a change
+# that you made last week required touching a file and a change you
+# made today requires touching the same file, just copy the old
+# touch step and add it to the end of the list.
+#
+# ************************************************
+# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
+# ************************************************
+
+# For example:
+#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
+#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
+#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
+#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
+
+# ************************************************
+# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
+# ************************************************
diff --git a/res/drawable-hdpi/all_apps.png b/res/drawable-hdpi/all_apps.png
new file mode 100644
index 0000000..dd2a522
--- /dev/null
+++ b/res/drawable-hdpi/all_apps.png
Binary files differ
diff --git a/res/drawable-hdpi/droid_widget_focused.9.png b/res/drawable-hdpi/droid_widget_focused.9.png
new file mode 100644
index 0000000..218f2a7
--- /dev/null
+++ b/res/drawable-hdpi/droid_widget_focused.9.png
Binary files differ
diff --git a/res/drawable-hdpi/droid_widget_normal.9.png b/res/drawable-hdpi/droid_widget_normal.9.png
new file mode 100644
index 0000000..e0d1e9e
--- /dev/null
+++ b/res/drawable-hdpi/droid_widget_normal.9.png
Binary files differ
diff --git a/res/drawable-hdpi/droid_widget_pressed.9.png b/res/drawable-hdpi/droid_widget_pressed.9.png
new file mode 100644
index 0000000..8601306
--- /dev/null
+++ b/res/drawable-hdpi/droid_widget_pressed.9.png
Binary files differ
diff --git a/res/drawable-hdpi/droidman_closed.png b/res/drawable-hdpi/droidman_closed.png
new file mode 100644
index 0000000..26ac62e
--- /dev/null
+++ b/res/drawable-hdpi/droidman_closed.png
Binary files differ
diff --git a/res/drawable-hdpi/droidman_down_closed.png b/res/drawable-hdpi/droidman_down_closed.png
new file mode 100644
index 0000000..81e22e1
--- /dev/null
+++ b/res/drawable-hdpi/droidman_down_closed.png
Binary files differ
diff --git a/res/drawable-hdpi/droidman_down_open.png b/res/drawable-hdpi/droidman_down_open.png
new file mode 100644
index 0000000..451c567
--- /dev/null
+++ b/res/drawable-hdpi/droidman_down_open.png
Binary files differ
diff --git a/res/drawable-hdpi/droidman_open.png b/res/drawable-hdpi/droidman_open.png
new file mode 100644
index 0000000..22997b1
--- /dev/null
+++ b/res/drawable-hdpi/droidman_open.png
Binary files differ
diff --git a/res/drawable-hdpi/icon.png b/res/drawable-hdpi/icon.png
new file mode 100644
index 0000000..b98e31f
--- /dev/null
+++ b/res/drawable-hdpi/icon.png
Binary files differ
diff --git a/res/drawable-hdpi/trash.png b/res/drawable-hdpi/trash.png
new file mode 100644
index 0000000..e5deef6
--- /dev/null
+++ b/res/drawable-hdpi/trash.png
Binary files differ
diff --git a/res/drawable-mdpi/all_apps.png b/res/drawable-mdpi/all_apps.png
new file mode 100644
index 0000000..02ca2dd
--- /dev/null
+++ b/res/drawable-mdpi/all_apps.png
Binary files differ
diff --git a/res/drawable-mdpi/droid_widget_focused.9.png b/res/drawable-mdpi/droid_widget_focused.9.png
new file mode 100644
index 0000000..91bc456
--- /dev/null
+++ b/res/drawable-mdpi/droid_widget_focused.9.png
Binary files differ
diff --git a/res/drawable-mdpi/droid_widget_normal.9.png b/res/drawable-mdpi/droid_widget_normal.9.png
new file mode 100644
index 0000000..652c16f
--- /dev/null
+++ b/res/drawable-mdpi/droid_widget_normal.9.png
Binary files differ
diff --git a/res/drawable-mdpi/droid_widget_pressed.9.png b/res/drawable-mdpi/droid_widget_pressed.9.png
new file mode 100644
index 0000000..1220084
--- /dev/null
+++ b/res/drawable-mdpi/droid_widget_pressed.9.png
Binary files differ
diff --git a/res/drawable-mdpi/droidman_closed.png b/res/drawable-mdpi/droidman_closed.png
new file mode 100644
index 0000000..0468dcb
--- /dev/null
+++ b/res/drawable-mdpi/droidman_closed.png
Binary files differ
diff --git a/res/drawable-mdpi/droidman_down_closed.png b/res/drawable-mdpi/droidman_down_closed.png
new file mode 100644
index 0000000..a1ebf44
--- /dev/null
+++ b/res/drawable-mdpi/droidman_down_closed.png
Binary files differ
diff --git a/res/drawable-mdpi/droidman_down_open.png b/res/drawable-mdpi/droidman_down_open.png
new file mode 100644
index 0000000..4c81851
--- /dev/null
+++ b/res/drawable-mdpi/droidman_down_open.png
Binary files differ
diff --git a/res/drawable-mdpi/droidman_open.png b/res/drawable-mdpi/droidman_open.png
new file mode 100644
index 0000000..e30f79f
--- /dev/null
+++ b/res/drawable-mdpi/droidman_open.png
Binary files differ
diff --git a/res/drawable-mdpi/icon.png b/res/drawable-mdpi/icon.png
new file mode 100644
index 0000000..a003e9d
--- /dev/null
+++ b/res/drawable-mdpi/icon.png
Binary files differ
diff --git a/res/drawable-mdpi/trash.png b/res/drawable-mdpi/trash.png
new file mode 100644
index 0000000..5e423c4
--- /dev/null
+++ b/res/drawable-mdpi/trash.png
Binary files differ
diff --git a/res/drawable/droid_widget.xml b/res/drawable/droid_widget.xml
new file mode 100644
index 0000000..cf06694
--- /dev/null
+++ b/res/drawable/droid_widget.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="true" android:drawable="@drawable/droid_widget_pressed" />
+ <item android:state_focused="true" android:state_window_focused="true" android:drawable="@drawable/droid_widget_focused" />
+ <item android:state_focused="true" android:state_window_focused="false" android:drawable="@drawable/droid_widget_normal" />
+ <item android:drawable="@drawable/droid_widget_normal" />
+</selector>
+
diff --git a/res/layout-land/widget.xml b/res/layout-land/widget.xml
new file mode 100644
index 0000000..b447bca
--- /dev/null
+++ b/res/layout-land/widget.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/widget"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="1dip"
+ >
+
+ <include layout="@layout/droid" />
+ <include layout="@layout/bubble" />
+</RelativeLayout>
diff --git a/res/layout/bubble.xml b/res/layout/bubble.xml
new file mode 100644
index 0000000..5c07542
--- /dev/null
+++ b/res/layout/bubble.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/tip_bubble"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_toLeftOf="@+id/bugdroid"
+ android:layout_centerVertical="true"
+ android:gravity="center_vertical|left"
+ android:layout_marginRight="2dip"
+ android:visibility="invisible"
+ android:background="@drawable/droid_widget"
+ android:focusable="true"
+ >
+ <TextView
+ android:layout_width="0dip"
+ android:layout_height="0dip"
+ android:layout_alignParentTop="true"
+ android:layout_marginTop="-100dip"
+ android:text="@string/widget_name"
+ />
+ <TextView
+ android:layout_width="0dip"
+ android:layout_height="0dip"
+ android:layout_alignParentTop="true"
+ android:layout_marginTop="-90dip"
+ android:text="@string/tts_pause"
+ />
+ <TextView
+ android:id="@+id/tip_footer"
+ style="@style/TipText.Footer"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentRight="true"
+ android:layout_marginRight="1dip"
+ />
+ <ImageView
+ android:id="@+id/tip_callout"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:gravity="center"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentRight="true"
+ android:layout_above="@id/tip_footer"
+ android:visibility="gone"
+ android:padding="4dip"
+ />
+ <TextView
+ android:id="@+id/tip_header"
+ style="@style/TipText.Header"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_toLeftOf="@id/tip_callout"
+ android:layout_alignWithParentIfMissing="true"
+ android:layout_marginTop="0dip"
+ android:layout_marginLeft="3dip"
+ />
+ <TextView
+ android:id="@+id/tip_message"
+ style="@style/TipText.Message"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/tip_header"
+ android:layout_alignLeft="@id/tip_header"
+ android:layout_alignRight="@id/tip_header"
+ android:layout_marginTop="1dip"
+ />
+</RelativeLayout>
+
diff --git a/res/layout/droid.xml b/res/layout/droid.xml
new file mode 100644
index 0000000..68496f2
--- /dev/null
+++ b/res/layout/droid.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/bugdroid"
+ android:src="@drawable/droidman_down_closed"
+ android:scaleType="center"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ />
+
diff --git a/res/layout/widget.xml b/res/layout/widget.xml
new file mode 100644
index 0000000..37c2c1b
--- /dev/null
+++ b/res/layout/widget.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/widget"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="5dip"
+ >
+
+ <include layout="@layout/droid" />
+ <include layout="@layout/bubble" />
+</RelativeLayout>
diff --git a/res/values-cs/arrays.xml b/res/values-cs/arrays.xml
new file mode 100644
index 0000000..93de4f9
--- /dev/null
+++ b/res/values-cs/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Jak zobrazit všechny aplikace"\n" Dotkněte se ikony spouštěče. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Přetáhněte si aplikace na plochu."\n" Dotkněte se aplikace v nástroji Launcher a podržte ji, dokud nezačne vibrovat."</item>
+ <item msgid="8903218961940756528">"Jak si uspořádat plochu"\n" Dotkněte se položky a podržte ji. Jakmile začne vibrovat, přetáhněte ji, kam chcete."</item>
+ <item msgid="3123213860439458492">"Jak odstranit položky"\n" Přidržte vybranou položku. Jakmile začne vibrovat, přetáhněte ji do koše. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Více ploch"\n" Přejeďte prstem po obrazovce doleva nebo doprava. Položky lze přetáhnout na jinou obrazovku."</item>
+ <item msgid="424487960942281801">"Widget už nepotřebujete?"\n" Přidržte jej a jakmile začne vibrovat, přetáhněte jej na ikonu koše."</item>
+ </string-array>
+</resources>
diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml
new file mode 100644
index 0000000..2acb55e
--- /dev/null
+++ b/res/values-cs/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Tipy pro používání plochy"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> z <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-da/arrays.xml b/res/values-da/arrays.xml
new file mode 100644
index 0000000..00ec06a
--- /dev/null
+++ b/res/values-da/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Se alle dine programmer."\n" Tryk på startikonet. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Føj programmer til din startskærm."\n" Tryk på et program i programlisten, og hold det nede."</item>
+ <item msgid="8903218961940756528">"Rediger din startskærm."\n" Hold fingeren på et element. Træk det til et andet sted, når det vibrerer."</item>
+ <item msgid="3123213860439458492">"Fjern elementer."\n" Hold fingeren på et element. Træk det til papirkurven, når det vibrerer. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Flere startskærme."\n" Bladr til venstre eller højre for at skifte. Træk elementer til andre skærme."</item>
+ <item msgid="424487960942281801">"Træt af denne widget?"\n" Tryk på den, og hold fingeren nede. Når widgetten vibrerer, kan du trække den til papirkurven."</item>
+ </string-array>
+</resources>
diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml
new file mode 100644
index 0000000..f3fc8f8
--- /dev/null
+++ b/res/values-da/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Tip til startskærmen"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> af <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-de/arrays.xml b/res/values-de/arrays.xml
new file mode 100644
index 0000000..8b095c9
--- /dev/null
+++ b/res/values-de/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Alle Apps auf einen Blick:"\n" Berühren Sie das Übersichtssymbol. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Ziehen Sie Apps auf Ihren Startbildschirm."\n" Berühren & halten Sie eine App in der Übersicht, bis sie vibriert."</item>
+ <item msgid="8903218961940756528">"Startbildschirm neu anordnen:"\n" Berühren & halten Sie ein Element. Sobald es vibriert, ziehen Sie es in Position."</item>
+ <item msgid="3123213860439458492">"Elemente entfernen:"\n" Berühren & halten Sie ein Element und ziehen Sie es in den Papierkorb. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Mehrere Startbildschirme:"\n" Ziehen Sie zum Wechseln nach links oder rechts. Ziehen Sie Elemente auf andere Bildschirme."</item>
+ <item msgid="424487960942281801">"Dieses Widget entfernen?"\n" Berühren & halten Sie es. Sobald es vibriert, ziehen Sie es in den Papierkorb."</item>
+ </string-array>
+</resources>
diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml
new file mode 100644
index 0000000..664a0cd
--- /dev/null
+++ b/res/values-de/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Tipps für den Startbildschirm"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> von <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-el/arrays.xml b/res/values-el/arrays.xml
new file mode 100644
index 0000000..877893b
--- /dev/null
+++ b/res/values-el/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Όλες οι εφαρμογές."\n" Αγγίξτε το εικ. εκκίνησης. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Μεταφέρετε εφαρμογές στην Αρχική σας οθόνη."\n" Αγγίξτε και κρατήστε μια εφαρμογή στη Λειτουργία εκκίνησης μέχρι να αρχίσει να δονείται."</item>
+ <item msgid="8903218961940756528">"Αλλάξτε τη αρχική σας οθόνη."\n" Κρατήστε πατημένο ένα στοιχείο και μόλις αρχίσει να δονείται, σύρετέ το εκεί που θέλετε."</item>
+ <item msgid="3123213860439458492">"Κατάργηση στοιχείων."\n" Κρατήστε πατημένο ένα στοιχ. και μόλις αρχ. να δονείται, σύρετέ το στον Κάδο απορ/των. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Πολλές αρχικές οθόνες."\n" Σύρετε αριστ. ή δεξ. για αλλαγή. Σύρετε στοιχ. σε άλλες οθόνες."</item>
+ <item msgid="424487960942281801">"Δεν θέλετε αυτό το γραφικό στοιχείο;"\n" Κρατήστε το πατημένο και μόλις αρχ. να δονείται, σύρετέ το στον Κάδο απορρ/των."</item>
+ </string-array>
+</resources>
diff --git a/res/values-el/strings.xml b/res/values-el/strings.xml
new file mode 100644
index 0000000..4504e02
--- /dev/null
+++ b/res/values-el/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Συμβουλές αρχικής οθόνης"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> από <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-es-rUS/arrays.xml b/res/values-es-rUS/arrays.xml
new file mode 100644
index 0000000..0fcbe99
--- /dev/null
+++ b/res/values-es-rUS/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Accede a tus aplicaciones."\n"Toca el icono cuadrado. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Arrastra aplicaciones a tu pantalla principal."\n"Toca y mantén presionada una aplicación en el selector hasta que vibre."</item>
+ <item msgid="8903218961940756528">"Organiza la pantalla"\n" Mantén tocado un icono. Cuando la pantalla vibre, arrástralo a donde quieras."</item>
+ <item msgid="3123213860439458492">"Elimina iconos"\n" Mantén tocado un icono. Cuando la pantalla vibre, arrástralo hasta la papelera. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Crea varias pantallas"\n" Desliza el dedo hacia la izquierda o derecha y arrastra iconos a otras pantallas."</item>
+ <item msgid="424487960942281801">"¿Quieres cerrar este widget?"\n" Manténlo tocado. Cuando la pantalla vibre, arrástralo a la papelera."</item>
+ </string-array>
+</resources>
diff --git a/res/values-es-rUS/strings.xml b/res/values-es-rUS/strings.xml
new file mode 100644
index 0000000..44bb7b3
--- /dev/null
+++ b/res/values-es-rUS/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Consejos acerca de la pantalla principal"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> de <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-es/arrays.xml b/res/values-es/arrays.xml
new file mode 100644
index 0000000..ddf06af
--- /dev/null
+++ b/res/values-es/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Accede a tus aplicaciones"\n" Toca en el icono cuadrado. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Arrastra aplicaciones al escritorio."\n" Mantén pulsada una aplicación del launcher hasta que vibre."</item>
+ <item msgid="8903218961940756528">"Organiza el escritorio"\n" Mantén pulsado un icono. Cuando la pantalla vibre, arrástralo a donde quieras."</item>
+ <item msgid="3123213860439458492">"Elimina iconos"\n" Mantén pulsado un icono. Cuando la pantalla vibre, arrástralo hasta la papelera. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Crea varias pantallas"\n" Desliza el dedo hacia la izquierda o derecha y arrastra iconos a otras pantallas."</item>
+ <item msgid="424487960942281801">"¿Quieres cerrar este widget?"\n" Manténlo pulsado. Cuando la pantalla vibre, arrástralo a la papelera."</item>
+ </string-array>
+</resources>
diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml
new file mode 100644
index 0000000..daf605f
--- /dev/null
+++ b/res/values-es/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Consejos iniciales"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> de <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-fr/arrays.xml b/res/values-fr/arrays.xml
new file mode 100644
index 0000000..8199e31
--- /dev/null
+++ b/res/values-fr/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Accéder à toutes vos applications"\n" Appuyez sur le lanceur d\'applications. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Faites glisser les applications vers votre écran d\'accueil."\n" Appuyez sur une application du lanceur d\'applications jusqu\'à ce qu\'elle vibre."</item>
+ <item msgid="8903218961940756528">"Organiser l\'écran d\'accueil"\n" Appuyez sur un élément et maintenez. Lorsqu\'il vibre, placez-le à l\'endroit souhaité."</item>
+ <item msgid="3123213860439458492">"Supprimer un élément"\n" Appuyez sur l\'élément et maintenez. Lorsqu\'il vibre, déplacez-le vers la corbeille. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Écrans d\'accueil multiples"\n" Faites glisser l\'écran vers la droite/gauche. Déplacez les icônes d\'un écran à l\'autre."</item>
+ <item msgid="424487960942281801">"Supprimer ce widget ?"\n" Appuyez dessus et maintenez. Quand il vibre, déplacez-le vers la corbeille."</item>
+ </string-array>
+</resources>
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
new file mode 100644
index 0000000..c3c9e87
--- /dev/null
+++ b/res/values-fr/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Astuces de l\'écran d\'accueil"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> sur <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-it/arrays.xml b/res/values-it/arrays.xml
new file mode 100644
index 0000000..5a9298e
--- /dev/null
+++ b/res/values-it/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Visualizza tutte le applicazioni."\n" Tocca l\'icona Avvio. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Trascina applicazioni nella schermata Home."\n" Tocca un\'applicazione e tieni premuto in Avvio applicazioni fino alla vibrazione."</item>
+ <item msgid="8903218961940756528">"Riorganizza la schermata Home."\n" Tieni premuto un elemento e quando vibra trascinalo dove vuoi."</item>
+ <item msgid="3123213860439458492">"Rimuovi gli elementi."\n" Tieni premuto un elemento e quando vibra trascinalo sull\'icona Cestino. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Schermate Home multiple."\n" Scorri a sinistra o a destra per passare da una all\'altra. Trascina elementi in altre schermate."</item>
+ <item msgid="424487960942281801">"Hai completato il widget?"\n" Tienilo premuto e quando vibra trascinalo sull\'icona Cestino."</item>
+ </string-array>
+</resources>
diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml
new file mode 100644
index 0000000..ab6ad69
--- /dev/null
+++ b/res/values-it/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Suggerimenti"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> di <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-ja/arrays.xml b/res/values-ja/arrays.xml
new file mode 100644
index 0000000..d6c5403
--- /dev/null
+++ b/res/values-ja/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"すべてのアプリの表示"\n" ランチャーアイコンをタップします。 @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"ホーム画面へのアプリのドラッグ"\n"ランチャーでアプリが振動するまで押し続けます。"</item>
+ <item msgid="8903218961940756528">"ホーム画面のアイテムの並べ替え"\n" アイテムを押し続けて振動したら好きな場所にドラッグできます。"</item>
+ <item msgid="3123213860439458492">"アイテムの削除"\n" アイテムを押し続けて振動したらゴミ箱アイコンにドラッグできます。 @drawable/trash"</item>
+ <item msgid="1000948398885889319">"複数のホーム画面"\n" 左右にスワイプするとホーム画面を切り替えられます。アイテムを他の画面にドラッグできます。"</item>
+ <item msgid="424487960942281801">"不要になったウィジェット"\n" ウィジェットを押し続けて振動したらゴミ箱アイコンにドラッグできます。"</item>
+ </string-array>
+</resources>
diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml
new file mode 100644
index 0000000..458a4ff
--- /dev/null
+++ b/res/values-ja/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"ホーム画面のヒント"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> / <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-ko/arrays.xml b/res/values-ko/arrays.xml
new file mode 100644
index 0000000..d42a773
--- /dev/null
+++ b/res/values-ko/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"앱 전체보기"\n" 실행기 아이콘을 누릅니다. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"애플리케이션을 메인 스크린으로 드래그합니다."\n" 실행기에서 애플리케이션을 터치하여 진동할 때까지 계속 누르고 있습니다."</item>
+ <item msgid="8903218961940756528">"홈 화면 변경"\n" 항목을 길게 누르고 항목이 진동하면 원하는 곳으로 드래그합니다."</item>
+ <item msgid="3123213860439458492">"항목 삭제"\n" 항목을 길게 누르고 항목이 진동하면 휴지통 아이콘으로 드래그합니다. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"여러 홈 화면"\n" 전환하려면 왼쪽이나 오른쪽으로 스와이프합니다. 다른 화면으로 항목을 드래그할 수 있습니다."</item>
+ <item msgid="424487960942281801">"위젯 제거"\n" 위젯을 길게 누르고 위젯이 진동하면 휴지통 아이콘으로 드래그합니다."</item>
+ </string-array>
+</resources>
diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml
new file mode 100644
index 0000000..cc987bc
--- /dev/null
+++ b/res/values-ko/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"홈 화면 도움말"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g>/<xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-nb/arrays.xml b/res/values-nb/arrays.xml
new file mode 100644
index 0000000..452d761
--- /dev/null
+++ b/res/values-nb/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Vis alle programmer."\n" Berør ikonet for Oppstart. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Dra programmer til startsiden."\n" Trykk på og hold inne et program i programlisten inntil den vibrerer."</item>
+ <item msgid="8903218961940756528">"Omorganiser startsiden."\n" Berør og hold nede et element, og når det vibrerer, dra det dit du ønsker."</item>
+ <item msgid="3123213860439458492">"Fjern elementer."\n" Berør og hold nede et element, og når det vibrerer, dra det til papirkurven. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Flere startsider."\n" Sveip til venstre eller høyre for å bytte. Dra elementer til andre skjermer."</item>
+ <item msgid="424487960942281801">"Ferdig med modulen?"\n" Berør modulen og hold den nede. Når den vibrerer, dra den til papirkurven."</item>
+ </string-array>
+</resources>
diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml
new file mode 100644
index 0000000..43e505e
--- /dev/null
+++ b/res/values-nb/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Tips for startsiden"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> av <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-nl/arrays.xml b/res/values-nl/arrays.xml
new file mode 100644
index 0000000..20bc6e2
--- /dev/null
+++ b/res/values-nl/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Bekijk al uw toepassingen."\n" Raak de starticoon aan. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Sleep toepassingen naar uw startscherm."\n" Houd uw vinger op een toepassing in het opstartprogramma totdat de toepassing gaat trillen."</item>
+ <item msgid="8903218961940756528">"Deel uw startscherm opnieuw in."\n" Raak een item aan, houd het ingedrukt en laat los zodra het vibreert."</item>
+ <item msgid="3123213860439458492">"Items verwijderen."\n" Raak item aan, druk in en sleep het naar de prullenbak zodra het vibreert. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Meerdere startschermen."\n" Schuif naar links of rechts om te wisselen. Sleep items naar andere schermen."</item>
+ <item msgid="424487960942281801">"Klaar met deze widget?"\n" Raak \'m aan, houd \'m ingedrukt en sleep \'m naar de prullenbak zodra hij vibreert."</item>
+ </string-array>
+</resources>
diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml
new file mode 100644
index 0000000..853b6b7
--- /dev/null
+++ b/res/values-nl/strings.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- no translation found for widget_name (5948202656358353180) -->
+ <skip />
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> van <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-pl/arrays.xml b/res/values-pl/arrays.xml
new file mode 100644
index 0000000..ec69908
--- /dev/null
+++ b/res/values-pl/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Wyświetl wszystkie aplikacje."\n" Dotknij ikony z kratką. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Przeciągnij aplikacje na Ekran główny."\n" Dotknij i przytrzymaj aplikację w programie uruchamiającym, aż zacznie wibrować."</item>
+ <item msgid="8903218961940756528">"Poukładaj ikony na ekranie."\n" Dotknij wybranej ikony, przytrzymaj aż poczujesz wibrację i przeciągnij ją w dowolne miejsce"</item>
+ <item msgid="3123213860439458492">"Usuń element z ekranu."\n" Dotknij ikony, przytrzymaj aż poczujesz wibrację i przeciągnij ją do kosza. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Przełącz na inny ekran."\n" Przesuń palcem w bok, aby przełączyć ekran. Przeciągaj ikony między ekranami."</item>
+ <item msgid="424487960942281801">"Nie potrzebujesz tego widżetu?"\n" Dotknij i przytrzymaj go aż poczujesz wibrację, a następnie przeciągnij do kosza."</item>
+ </string-array>
+</resources>
diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml
new file mode 100644
index 0000000..3223be8
--- /dev/null
+++ b/res/values-pl/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Jak korzystać z ekranu"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> z <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-pt-rPT/arrays.xml b/res/values-pt-rPT/arrays.xml
new file mode 100644
index 0000000..e1adfcd
--- /dev/null
+++ b/res/values-pt-rPT/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Veja todas as suas aplicações."\n" Toque no ícone Iniciador. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Arrastar aplicações para o ecrã principal."\n" No iniciador, toque sem soltar numa aplicação até que vibre."</item>
+ <item msgid="8903218961940756528">"Reorganize o ecrã principal."\n" Mantenha premido um item e quando este vibrar, arraste-o para onde quiser."</item>
+ <item msgid="3123213860439458492">"Remova os itens."\n" Mantenha premido um item e quando este vibrar, arraste-o para o ícone Lixo. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Vários ecrãs principais."\n" Deslize para a esquerda ou para a direita para mudar. Arraste os itens para outros ecrãs."</item>
+ <item msgid="424487960942281801">"Já não precisa deste widget?"\n" Mantenha-o premido e quando vibrar, arraste-o para o ícone Lixo."</item>
+ </string-array>
+</resources>
diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml
new file mode 100644
index 0000000..e34c87f
--- /dev/null
+++ b/res/values-pt-rPT/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Sugestões do ecrã principal"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> de <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-pt/arrays.xml b/res/values-pt/arrays.xml
new file mode 100644
index 0000000..14d1b84
--- /dev/null
+++ b/res/values-pt/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Veja todos os seus aplicativos."\n" Toque no ícone do Launcher. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Arraste os aplicativos até a Tela inicial."\n" Toque e segure um aplicativo no Iniciador até que ele vibre."</item>
+ <item msgid="8903218961940756528">"Reorganize sua tela inicial."\n" Toque e segure um item; quando ele vibrar, arraste-o para onde quiser."</item>
+ <item msgid="3123213860439458492">"Remova itens."\n" Toque e segure um item; quando ele vibrar, arraste-o para a Lixeira. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Múltiplas telas iniciais."\n" Deslize para a esquerda ou para a direita para alternar entre as telas. Arraste itens para outras telas."</item>
+ <item msgid="424487960942281801">"Já usou este widget?"\n" Toque e mantenha o widget pressionado; quando ele vibrar, arraste-o para a Lixeira."</item>
+ </string-array>
+</resources>
diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml
new file mode 100644
index 0000000..c42e651
--- /dev/null
+++ b/res/values-pt/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Dicas da tela inicial"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> de <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-ru/arrays.xml b/res/values-ru/arrays.xml
new file mode 100644
index 0000000..d901c20
--- /dev/null
+++ b/res/values-ru/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Как открыть список всех приложений?"\n"Нажмите на иконку запуска. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Перетащите приложения на главный экран."\n"В панели запуска нажмите на приложение и удерживайте его до вибрации."</item>
+ <item msgid="8903218961940756528">"Настройте свой главный экран."\n"Нажмите на объект, дождитесь вибрации и перетащите его в нужное место."</item>
+ <item msgid="3123213860439458492">"Удаляйте объекты с экранов."\n"Нажмите и перетащите объект в корзину. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Используйте несколько экранов."\n"Листайте экраны и добавляйте на них объекты."</item>
+ <item msgid="424487960942281801">"Виджет больше не нужен?"\n"Нажмите на него, дождитесь вибрации и перетащите значок в корзину."</item>
+ </string-array>
+</resources>
diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml
new file mode 100644
index 0000000..665410c
--- /dev/null
+++ b/res/values-ru/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Советы по управлению главным экраном"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> из <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-sv/arrays.xml b/res/values-sv/arrays.xml
new file mode 100644
index 0000000..f1f09a3
--- /dev/null
+++ b/res/values-sv/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Visa alla dina program."\n" Tryck på startikonen. @dragbar/alla_program"</item>
+ <item msgid="8842580895829057430">"Dra appar till din startsida."\n" Tryck på en app i startprogrammet tills den vibrerar."</item>
+ <item msgid="8903218961940756528">"Ordna om startskärmen."\n" Tryck på ett objekt tills det vibrerar och dra det sedan dit du vill ha det."</item>
+ <item msgid="3123213860439458492">"Ta bort objekt."\n" Tryck på ett objekt tills det vibrerar och dra det sedan till papperskorgen. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Flera startskärmar."\n" Dra åt höger eller vänster om du vill byta. Dra objekt till andra skärmar."</item>
+ <item msgid="424487960942281801">"Är du klar med widgeten?"\n" Tryck på den tills den vibrerar och dra den sedan till papperskorgen."</item>
+ </string-array>
+</resources>
diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml
new file mode 100644
index 0000000..1d4cc12
--- /dev/null
+++ b/res/values-sv/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Tips för startsidan"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> av <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-tr/arrays.xml b/res/values-tr/arrays.xml
new file mode 100644
index 0000000..d0b2b22
--- /dev/null
+++ b/res/values-tr/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"Tüm uygulamalarınızı görün."\n" Başlatıcı simgesine dokunun. @drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"Uygulamaları Ana Sayfanıza sürükleyin."\n" Başlatıcıdaki bir uygulamaya dokunun ve titreyene kadar parmağınızı çekmeyin."</item>
+ <item msgid="8903218961940756528">"Ana ekranınızı düzenleyin."\n" Bir öğeye dokunun ve titreştiğinde sürükleyin."</item>
+ <item msgid="3123213860439458492">"Öğeleri kaldırın."\n" Bir öğeye dokunup bekleyin ve titreştiğinde Çöp Kutusu simgesine sürükleyin. @drawable/trash"</item>
+ <item msgid="1000948398885889319">"Birden fazla Ana ekran."\n" Ekranlar arasında geçiş yapmak için sağa veya sola kaydırın. Öğeleri diğer ekranlara sürükleyin."</item>
+ <item msgid="424487960942281801">"Bu widget\'la işiniz bitti mi?"\n" Üzerine dokunup bekleyin ve titreştiğinde Çöp Kutusu simgesine sürükleyin."</item>
+ </string-array>
+</resources>
diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml
new file mode 100644
index 0000000..df4164f
--- /dev/null
+++ b/res/values-tr/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"Ana ekranla ilgili ipuçları"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"<xliff:g id="CURPAGE">%1$d</xliff:g> / <xliff:g id="NUMPAGES">%2$d</xliff:g>"</string>
+</resources>
diff --git a/res/values-zh-rCN/arrays.xml b/res/values-zh-rCN/arrays.xml
new file mode 100644
index 0000000..186887a
--- /dev/null
+++ b/res/values-zh-rCN/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"查看手机上的所有应用程序。"\n"点一下“启动程序”图标。@drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"将应用程序拖至主屏幕。"\n"触摸并按住启动器中的一个应用程序,直到它发出振动。"</item>
+ <item msgid="8903218961940756528">"整理手机的主屏幕。"\n"按住某项直至手机振动,然后将其拖到所需的位置。"</item>
+ <item msgid="3123213860439458492">"删除某项。"\n"按住该项直至手机震动,然后将其拖入“垃圾桶”图标。@drawable/trash"</item>
+ <item msgid="1000948398885889319">"有多个主屏幕。"\n"用手指在屏幕上左右滑动即可切换显示,并可在各主屏幕之间移动图标。"</item>
+ <item msgid="424487960942281801">"不再需要此窗口小部件?"\n"按住它直至手机振动,然后将其拖入“垃圾桶”图标。"</item>
+ </string-array>
+</resources>
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
new file mode 100644
index 0000000..370c055
--- /dev/null
+++ b/res/values-zh-rCN/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"主屏幕提示"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"第 <xliff:g id="CURPAGE">%1$d</xliff:g> 条(共 <xliff:g id="NUMPAGES">%2$d</xliff:g> 条)"</string>
+</resources>
diff --git a/res/values-zh-rTW/arrays.xml b/res/values-zh-rTW/arrays.xml
new file mode 100644
index 0000000..00fc813
--- /dev/null
+++ b/res/values-zh-rTW/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="tips">
+ <item msgid="4457112202911142877">"查看您的所有應用程式。"\n" 點一下 [啟動器] 圖示。@drawable/all_apps"</item>
+ <item msgid="8842580895829057430">"將應用程式拖至主螢幕。"\n"輕觸並按住應用程式啟動器中的某個應用程式直到震動。"</item>
+ <item msgid="8903218961940756528">"重新整理手機主頁。"\n" 按住項目直至手機震動,然後把該項目拖曳至新的位置。"</item>
+ <item msgid="3123213860439458492">"移除項目。"\n" 按住項目直至手機震動,然後把該項目拖曳至垃圾桶圖示。@drawable/trash"</item>
+ <item msgid="1000948398885889319">"多個手機主頁。"\n" 用手指在螢幕上左右滑動,並把項目拖曳至其他畫面。"</item>
+ <item msgid="424487960942281801">"不需要這個小工具了嗎?"\n" 按住小工具直至手機震動,然後把該小工具拖曳至垃圾桶圖示。"</item>
+ </string-array>
+</resources>
diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml
new file mode 100644
index 0000000..f88d264
--- /dev/null
+++ b/res/values-zh-rTW/strings.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="widget_name" msgid="5948202656358353180">"手機主頁提示"</string>
+ <string name="pager_footer" msgid="8874468132852452517">"第 <xliff:g id="CURPAGE">%1$d</xliff:g> 頁,共 <xliff:g id="NUMPAGES">%2$d</xliff:g> 頁"</string>
+</resources>
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
new file mode 100644
index 0000000..9e91e94
--- /dev/null
+++ b/res/values/arrays.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <!-- Set of tips to show the user.
+
+ First line is the tip title, which is shown in bold on its own line.
+
+ All subsequent text is placed into the tip body.
+
+ The occurrence of @drawable/foo causes the bitmap drawable named "foo"
+ to be displayed to the right of the tip text.
+
+ Example for tip #1:
+ _____________________________________________ \_/
+ | | /._.\
+ | See all your apps. [all_apps.png] > U| |U
+ | Touch the Launcher icon. | |___|
+ |_____________________________________________| U U
+ -->
+ <string-array name="tips">
+ <!-- Tip: Where the launcher icon is and what it does. With icon. -->
+ <item>See all your apps.\n
+ Touch the Launcher icon. @drawable/all_apps</item>
+
+ <!-- Tip: Longpress in Launcher (all apps) to drag apps to the home screen. -->
+ <item>Drag apps to your Home screen.\n
+ Touch & hold an app in the Launcher until it vibrates.</item>
+
+ <!-- Tip: Longpress to move icons/widgets around. -->
+ <item>Rearrange your Home screen.\n
+ Touch & hold an item and when it vibrates, drag it where you want.</item>
+
+ <!-- Tip: Longpress icons/widgets and drag to trash to remove them. -->
+ <item>Remove items.\n
+ Touch & hold an item and when it vibrates, drag it to the Trash icon. @drawable/trash</item>
+
+ <!-- Tip: Swipe to switch workspaces; drag items to move them to other
+ workspaces. -->
+ <item>Multiple Home screens.\n
+ Swipe left or right to switch. Drag items to other screens.</item>
+
+ <!-- Tip: Reminder about how to delete widgets, reinforcing that this
+ technique can be used to remove the tips widget iteself. -->
+ <item>Done with this widget?\n
+ Touch & hold it and when it vibrates, drag it to the Trash icon.</item>
+ </string-array>
+
+ <!-- dial *#*#TIPS#*#* -->
+ <!-- do not translate -->
+ <string-array name="tips2">
+ <item>Home is a garden
+ \nTouch & hold an empty spot
+ \nTo grow new icons</item>
+ <item>Phone isn’t waterproof
+ \nDo not immerse in water
+ \nor other fluids</item>
+ <item>Want some more home screens?
+ \nSwipe left and right to find them
+ \n(No theft required)</item>
+ <item>Little Home screen dots
+ \nWhat could they possibly do?
+ \nTouch & hold to learn.</item>
+ <item>Status bar icons
+ \nTo discover their secrets
+ \nPull the windowshade</item>
+ <item>There is a trick to
+ \nDragging items twixt Home screens
+ \nPause at the edges</item>
+ <item>Touch Market for apps
+ \nLike a box of chocolates
+ \nEach one a surprise</item>
+ <item>Oh, and by the way:
+ \nCeci n’est pas une trombone
+ \nI am an Android</item>
+ </string-array>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..1e2fada
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Name of tips widget (shown in Launcher "add widget" list) -->
+ <string name="widget_name">Home screen tips</string>
+ <!-- Format string for the footer of the tip bubble. Substitutions:
+ %1$d - the number of the current tip
+ %2$d - the total number of tips
+ -->
+ <string name="pager_footer"><xliff:g id="curPage" example="1">%1$d</xliff:g> of <xliff:g id="numPages" example="2">%2$d</xliff:g></string>
+ <!-- String to cause a TTS pause after reading @string/widget_name.
+ Do not translate. -->
+ <string name="tts_pause">.</string>
+</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
new file mode 100644
index 0000000..77ca5bb
--- /dev/null
+++ b/res/values/styles.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="TipText">
+ <item name="android:textSize">13sp</item>
+ <item name="android:textColor">@android:color/white</item>
+ <item name="android:textStyle">normal</item>
+ </style>
+ <style name="TipText.Header">
+ <item name="android:textStyle">bold</item>
+ </style>
+ <style name="TipText.Message">
+ <item name="android:lineSpacingExtra">0sp</item>
+ </style>
+ <style name="TipText.Footer">
+ <item name="android:textSize">10sp</item>
+ <item name="android:textStyle">bold</item>
+ <item name="android:textColor">#AAAAAA</item>
+ </style>
+</resources>
diff --git a/res/xml/widget_build.xml b/res/xml/widget_build.xml
new file mode 100644
index 0000000..c402aac
--- /dev/null
+++ b/res/xml/widget_build.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ android:minWidth="294dip"
+ android:minHeight="72dip"
+ android:updatePeriodMillis="0"
+ android:initialLayout="@layout/widget" />
diff --git a/src/com/android/protips/ProtipWidget.java b/src/com/android/protips/ProtipWidget.java
new file mode 100644
index 0000000..ddc0b42
--- /dev/null
+++ b/src/com/android/protips/ProtipWidget.java
@@ -0,0 +1,245 @@
+/*
+ * Copyright (C) 2010 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.protips;
+
+import android.app.AlarmManager;
+import android.app.PendingIntent;
+import android.app.Service;
+import android.appwidget.AppWidgetManager;
+import android.appwidget.AppWidgetProvider;
+import android.content.BroadcastReceiver;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.SharedPreferences;
+import android.content.Intent;
+import android.content.res.Resources;
+import android.content.res.TypedArray;
+import android.graphics.drawable.Drawable;
+import android.net.Uri;
+import android.os.Bundle;
+import android.os.Handler;
+import android.os.HandlerThread;
+import android.os.IBinder;
+import android.os.Looper;
+import android.os.Message;
+import android.os.SystemClock;
+import android.text.format.Time;
+import android.text.Spannable;
+import android.util.Log;
+import android.view.View;
+import android.widget.RemoteViews;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import java.util.Random;
+
+/** Mister Widget appears on your home screen to provide helpful tips. */
+public class ProtipWidget extends AppWidgetProvider {
+ public static final String ACTION_NEXT_TIP = "com.android.misterwidget.NEXT_TIP";
+ public static final String ACTION_POKE = "com.android.misterwidget.HEE_HEE";
+
+ public static final String EXTRA_TIMES = "times";
+
+ public static final String PREFS_NAME = "Protips";
+ public static final String PREFS_TIP_NUMBER = "widget_tip";
+ public static final String PREFS_TIP_SET = "widget_tip_set";
+
+ private static Random sRNG = new Random();
+
+ private static final Pattern sNewlineRegex = Pattern.compile(" *\\n *");
+ private static final Pattern sDrawableRegex = Pattern.compile(" *@(drawable/[a-z0-9_]+) *");
+
+ // initial appearance: eyes closed, no bubble
+ private int mIconRes = R.drawable.droidman_open;
+ private int mMessage = 0;
+ private int mTipSet = 0;
+
+ private AppWidgetManager mWidgetManager = null;
+ private int[] mWidgetIds;
+ private Context mContext;
+
+ private CharSequence[] mTips;
+
+ private void setup(Context context) {
+ mContext = context;
+ mWidgetManager = AppWidgetManager.getInstance(context);
+ mWidgetIds = mWidgetManager.getAppWidgetIds(new ComponentName(context, ProtipWidget.class));
+
+ SharedPreferences pref = context.getSharedPreferences(PREFS_NAME, 0);
+ mMessage = pref.getInt(PREFS_TIP_NUMBER, 0);
+ mTipSet = pref.getInt(PREFS_TIP_SET, 0);
+
+ mTips = context.getResources().getTextArray(mTipSet == 1 ? R.array.tips2 : R.array.tips);
+
+ if (mTips != null) {
+ if (mMessage >= mTips.length) mMessage = 0;
+ } else {
+ mMessage = -1;
+ }
+ }
+
+ public void goodmorning() {
+ mMessage = -1;
+ try {
+ setIcon(R.drawable.droidman_down_closed);
+ Thread.sleep(500);
+ setIcon(R.drawable.droidman_down_open);
+ Thread.sleep(200);
+ setIcon(R.drawable.droidman_down_closed);
+ Thread.sleep(100);
+ setIcon(R.drawable.droidman_down_open);
+ Thread.sleep(600);
+ } catch (InterruptedException ex) {
+ }
+ mMessage = 0;
+ mIconRes = R.drawable.droidman_open;
+ refresh();
+ }
+
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ setup(context);
+
+ Resources res = mContext.getResources();
+ mTips = res.getTextArray(mTipSet == 1 ? R.array.tips2 : R.array.tips);
+
+ if (intent.getAction().equals(ACTION_NEXT_TIP)) {
+ mMessage = getNextMessageIndex();
+ SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit();
+ pref.putInt(PREFS_TIP_NUMBER, mMessage);
+ pref.commit();
+ refresh();
+ } else if (intent.getAction().equals(ACTION_POKE)) {
+ blink(intent.getIntExtra(EXTRA_TIMES, 1));
+ } else if (intent.getAction().equals(AppWidgetManager.ACTION_APPWIDGET_ENABLED)) {
+ goodmorning();
+ } else if (intent.getAction().equals("android.provider.Telephony.SECRET_CODE")) {
+ Log.d("Protips", "ACHIEVEMENT UNLOCKED");
+ mTipSet = 1 - mTipSet;
+ mMessage = 0;
+
+ SharedPreferences.Editor pref = context.getSharedPreferences(PREFS_NAME, 0).edit();
+ pref.putInt(PREFS_TIP_NUMBER, mMessage);
+ pref.putInt(PREFS_TIP_SET, mTipSet);
+ pref.commit();
+
+ mContext.startActivity(
+ new Intent(Intent.ACTION_MAIN)
+ .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP)
+ .addCategory(Intent.CATEGORY_HOME));
+
+ final Intent bcast = new Intent(context, ProtipWidget.class);
+ bcast.setAction(ACTION_POKE);
+ bcast.putExtra(EXTRA_TIMES, 3);
+ mContext.sendBroadcast(bcast);
+ } else {
+ mIconRes = R.drawable.droidman_open;
+ refresh();
+ }
+ }
+
+ private void refresh() {
+ RemoteViews rv = buildUpdate(mContext);
+ for (int i : mWidgetIds) {
+ mWidgetManager.updateAppWidget(i, rv);
+ }
+ }
+
+ private void setIcon(int resId) {
+ mIconRes = resId;
+ refresh();
+ }
+
+ private int getNextMessageIndex() {
+ return (mMessage + 1) % mTips.length;
+ }
+
+ private void blink(int blinks) {
+ // don't blink if no bubble showing or if goodmorning() is happening
+ if (mMessage < 0) return;
+
+ setIcon(R.drawable.droidman_closed);
+ try {
+ Thread.sleep(100);
+ while (0<--blinks) {
+ setIcon(R.drawable.droidman_open);
+ Thread.sleep(200);
+ setIcon(R.drawable.droidman_closed);
+ Thread.sleep(100);
+ }
+ } catch (InterruptedException ex) { }
+ setIcon(R.drawable.droidman_open);
+ }
+
+ public RemoteViews buildUpdate(Context context) {
+ RemoteViews updateViews = new RemoteViews(
+ context.getPackageName(), R.layout.widget);
+
+ // Action for tap on bubble
+ Intent bcast = new Intent(context, ProtipWidget.class);
+ bcast.setAction(ACTION_NEXT_TIP);
+ PendingIntent pending = PendingIntent.getBroadcast(
+ context, 0, bcast, PendingIntent.FLAG_UPDATE_CURRENT);
+ updateViews.setOnClickPendingIntent(R.id.tip_bubble, pending);
+
+ // Action for tap on android
+ bcast = new Intent(context, ProtipWidget.class);
+ bcast.setAction(ACTION_POKE);
+ bcast.putExtra(EXTRA_TIMES, 1);
+ pending = PendingIntent.getBroadcast(
+ context, 0, bcast, PendingIntent.FLAG_UPDATE_CURRENT);
+ updateViews.setOnClickPendingIntent(R.id.bugdroid, pending);
+
+ // Tip bubble text
+ if (mMessage >= 0) {
+ String[] parts = sNewlineRegex.split(mTips[mMessage], 2);
+ String title = parts[0];
+ String text = parts.length > 1 ? parts[1] : "";
+
+ // Look for a callout graphic referenced in the text
+ Matcher m = sDrawableRegex.matcher(text);
+ if (m.find()) {
+ String imageName = m.group(1);
+ int resId = context.getResources().getIdentifier(
+
+ imageName, null, context.getPackageName());
+ updateViews.setImageViewResource(R.id.tip_callout, resId);
+ updateViews.setViewVisibility(R.id.tip_callout, View.VISIBLE);
+ text = m.replaceFirst("");
+ } else {
+ updateViews.setImageViewResource(R.id.tip_callout, 0);
+ updateViews.setViewVisibility(R.id.tip_callout, View.GONE);
+ }
+
+ updateViews.setTextViewText(R.id.tip_message,
+ text);
+ updateViews.setTextViewText(R.id.tip_header,
+ title);
+ updateViews.setTextViewText(R.id.tip_footer,
+ context.getResources().getString(
+ R.string.pager_footer,
+ (1+mMessage), mTips.length));
+ updateViews.setViewVisibility(R.id.tip_bubble, View.VISIBLE);
+ } else {
+ updateViews.setViewVisibility(R.id.tip_bubble, View.INVISIBLE);
+ }
+
+ updateViews.setImageViewResource(R.id.bugdroid, mIconRes);
+
+ return updateViews;
+ }
+}