1
0
Fork 0

Initial commit. It's version 1.3.1

Signed-off-by: Carlos Silva <r3pek@r3pek.org>
This commit is contained in:
Carlos Mogas da Silva 2010-04-23 19:04:13 +01:00
commit 9346ea10e5
27 changed files with 1421 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
res/drawable-mdpi/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

8
res/layout/about.xml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:id="@+id/aboutRoot">
<LinearLayout android:id="@+id/LinearLayout02" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center" android:layout_width="fill_parent"><ImageView android:id="@+id/ImageView01" android:layout_width="wrap_content" android:layout_height="wrap_content"></ImageView>
<TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15dip" android:textSize="20dip" android:text="@string/app_name"></TextView>
</LinearLayout>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/about" android:gravity="center" android:id="@+id/tvAbout" android:layout_marginBottom="20dip" android:layout_marginTop="20dip" android:autoLink="web"></TextView>
</LinearLayout>

38
res/layout/main.xml Normal file
View file

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="http://schemas.android.com/apk/res/org.r3pek.droiduptime"
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.admob.android.ads.AdView android:layout_gravity="bottom" android:id="@+id/ad" android:layout_width="fill_parent" android:layout_alignParentBottom="true" myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF" myapp:secondaryTextColor="#CCCCCC" android:layout_height="wrap_content" />
<ImageView android:id="@+id/ImageView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/droiduptime" android:layout_gravity="center_horizontal" android:layout_marginTop="20dip"></ImageView>
<TableLayout android:id="@+id/TableLayout01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:stretchColumns="1" android:paddingTop="20dip">
<TableRow android:id="@+id/TableRow01" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:id="@+id/LinearLayout01" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_width="fill_parent">
<TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textStyle="bold" android:layout_marginTop="15dip" android:text="@string/servicestatus"></TextView>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:id="@+id/tvStatus" android:layout_marginTop="15dip"></TextView>
</LinearLayout>
<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btnStartStopService" android:layout_gravity="right"></Button>
</TableRow>
</TableLayout>
<LinearLayout android:id="@+id/LinearLayout02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingTop="10dip"><TextView android:id="@+id/TextView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textStyle="bold" android:text="@string/uptime"></TextView>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:id="@+id/tvUptime"></TextView>
</LinearLayout>
<LinearLayout android:id="@+id/LinearLayout05" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="15dip"><TextView android:id="@+id/TextView06" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textStyle="bold" android:text="@string/lastupdate"></TextView>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:id="@+id/tvLastUpdate"></TextView>
</LinearLayout><TextView android:id="@+id/TextView03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="15dip" android:linksClickable="true" android:autoLink="web" android:text="@string/message"></TextView>
</LinearLayout>
</ScrollView>

46
res/values-en/strings.xml Normal file
View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DroidUptime</string>
<string name="about">DroidUptime application was developed by Carlos Silva and uses www.uptimeprj.com to commit the uptime information. If you liked this application, and if you want to, feel free to make a donation at www.r3pek.org or the Uptime Project website. Thanks.</string>
<string name="status_running">Running</string>
<string name="status_stopped">Stopped</string>
<string name="operation_start">Start</string>
<string name="operation_stop">Stop</string>
<string name="menu_about">About</string>
<string name="menu_setup">Setup</string>
<string name="btn_ok">OK</string>
<string name="btn_cancel">Cancel</string>
<string name="servicestatus">Service Status:</string>
<string name="uptime">Uptime:</string>
<string name="lastupdate">Last Update:</string>
<string name="message">This application requires you to register at www.uptimeprj.com so you can keep track of your uptime. After you registered, come back here and fill in the username and password on the Setup Menu.</string>
<string name="notyetupdated">Haven't updated yet</string>
<string name="months">months</string>
<string name="days">days</string>
<string name="hours">hours</string>
<string name="minutes">minutes and</string>
<string name="seconds">seconds</string>
<string name="pref_auth_cat">Authentication</string>
<string name="pref_auth_user">Username</string>
<string name="pref_auth_pass">Password</string>
<string name="pref_gen_cat">General</string>
<string-array name="update_intervals">
<item>10 Minutes</item>
<item>20 Minutes</item>
<item>30 Minutes</item>
<item>1 Hour</item>
<item>2 Hours</item>
</string-array>
<string name="pref_gen_update_int">Update Interval</string>
<string name="pref_gen_update_int_desc">How often it will submit the uptime (requires restart of the service)</string>
<string-array name="update_intervals_values">
<item>600</item>
<item>1200</item>
<item>1800</item>
<item>3600</item>
<item>7200</item>
</string-array>
<string name="no_user_pass">Please setup Username and Password</string>
<string name="pref_gen_hostname">Hostname</string>
<string name="pref_gen_hostname_desc">Hostname to send to the Uptime Project</string>
</resources>

46
res/values-es/strings.xml Normal file
View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DroidUptime</string>
<string name="about">La aplicación DroidUptime fué desarrollada por Carlos Silva y usa www.uptimeprj.com para recojer la información de uptime. Si te gusta esta aplicación, y si te apetece puede enviar tu donativo para www.r3pek.org o all Uptime Project website. Gracias.</string>
<string name="status_running">En ejecución</string>
<string name="status_stopped">Parado</string>
<string name="operation_start">Empezar</string>
<string name="operation_stop">Parar</string>
<string name="menu_about">Sobre</string>
<string name="menu_setup">Configuración</string>
<string name="btn_ok">Aceptar</string>
<string name="btn_cancel">Cancelar</string>
<string name="servicestatus">Estado:</string>
<string name="uptime">Tiempo actividad:</string>
<string name="lastupdate">Ultima actualización:</string>
<string name="message">Tienes que registrarte en www.uptimeprj.com para que puedas saber tu uptime. Después del registro coloca tus datos en el menu de configuración.</string>
<string name="notyetupdated">Sin actualizar</string>
<string name="months">Meses</string>
<string name="days">días</string>
<string name="hours">horas</string>
<string name="minutes">minutos y</string>
<string name="seconds">segundos</string>
<string name="pref_auth_cat">Autenticación</string>
<string name="pref_auth_user">Usuário</string>
<string name="pref_auth_pass">Contraseña</string>
<string name="pref_gen_cat">General</string>
<string-array name="update_intervals">
<item>10 Minutos</item>
<item>20 Minutos</item>
<item>30 Minutos</item>
<item>1 Hora</item>
<item>2 Horas</item>
</string-array>
<string name="pref_gen_update_int">Intervalo de actualización</string>
<string name="pref_gen_update_int_desc">A cada cuanto tiempo quieres que se actualice. (necesitas reiniciar el servicio)</string>
<string-array name="update_intervals_values">
<item>600</item>
<item>1200</item>
<item>1800</item>
<item>3600</item>
<item>7200</item>
</string-array>
<string name="no_user_pass">Por favor configura el usuário y contraseña</string>
<string name="pref_gen_hostname">Nombre del equipo</string>
<string name="pref_gen_hostname_desc">Nombre del equipo para Uptime Project</string>
</resources>

46
res/values-pt/strings.xml Normal file
View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DroidUptime</string>
<string name="about">A aplicação DroidUptime foi desenvolvida por Carlos Silva e usa o site www.uptimeprj.com para guardar a informação relativa ao uptime. Se gostou desta aplicação, e se quiser, faça um donativo em www.r3pek.org ou no site do Uptime Project. Obrigado.</string>
<string name="status_running">A executar</string>
<string name="status_stopped">Parado</string>
<string name="operation_start">Iniciar</string>
<string name="operation_stop">Parar</string>
<string name="menu_about">Sobre</string>
<string name="menu_setup">Configuração</string>
<string name="btn_ok">OK</string>
<string name="btn_cancel">Cancelar</string>
<string name="servicestatus">Estado do Serviço:</string>
<string name="uptime">Uptime:</string>
<string name="lastupdate">Última actualização:</string>
<string name="message">Esta aplicação necessita que se registe em www.uptimeprj.com para que se possa guardar e para controlar o seu uptime. Após o registo, volte a esta aplicação e preencha o Utilizador e a Senha no menu Configuração.</string>
<string name="notyetupdated">Ainda não actualizado</string>
<string name="months">meses</string>
<string name="days">dias</string>
<string name="hours">horas</string>
<string name="minutes">minutos e</string>
<string name="seconds">segundos</string>
<string name="pref_auth_cat">Autenticação</string>
<string name="pref_auth_user">Utilizador</string>
<string name="pref_auth_pass">Senha</string>
<string name="pref_gen_cat">Geral</string>
<string-array name="update_intervals">
<item>10 Minutos</item>
<item>20 Minutos</item>
<item>30 Minutos</item>
<item>1 Hora</item>
<item>2 Horas</item>
</string-array>
<string name="pref_gen_update_int">Frequência das Actualizações</string>
<string name="pref_gen_update_int_desc">Frequência em que o uptime é submetido ao servidor (requer que se reinicie o serviço)</string>
<string-array name="update_intervals_values">
<item>600</item>
<item>1200</item>
<item>1800</item>
<item>3600</item>
<item>7200</item>
</string-array>
<string name="no_user_pass">Insira o utilizador e a senha no menu configuração</string>
<string name="pref_gen_hostname">Hostname</string>
<string name="pref_gen_hostname_desc">Hostname a reportar para o Uptime Project</string>
</resources>

View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DroidUptime</string>
<string name="about">DroidUptime 应用是由 Carlos Silva 根据 www.uptimeprj.com 的正常运行时间数据开发的。如果您喜欢这个应用请到 www.r3pek.org 或 Uptime 项目的主页捐助, 谢谢!</string>
<string name="status_running">运行中</string>
<string name="status_stopped">已停止</string>
<string name="operation_start">开始</string>
<string name="operation_stop">停止</string>
<string name="menu_about">关于</string>
<string name="menu_setup">设置</string>
<string name="btn_ok">确定</string>
<string name="btn_cancel">取消</string>
<string name="servicestatus">服务状态:</string>
<string name="uptime">正常运行时间:</string>
<string name="lastupdate">最近更新:</string>
<string name="message">该应用需要注册, www.uptimeprj.com 这样您就可以跟踪您的正常运行时间。 注册完之后请回到这里并在设置菜单中填写用户名和密码。</string>
<string name="notyetupdated">还没有更新</string>
<string name="months"></string>
<string name="days"></string>
<string name="hours"></string>
<string name="minutes">分和</string>
<string name="seconds"></string>
<string name="pref_auth_cat">验证</string>
<string name="pref_auth_user">用户名</string>
<string name="pref_auth_pass">密码</string>
<string name="pref_gen_cat">概况General</string>
<string-array name="update_intervals">
<item>10 分钟</item>
<item>20 分钟</item>
<item>30 分钟</item>
<item>1 小时</item>
<item>2 小时</item>
</string-array>
<string name="pref_gen_update_int">更新间隔</string>
<string name="pref_gen_update_int_desc">多久提交更新 (需重启该服务)</string>
<string-array name="update_intervals_values">
<item>600</item>
<item>1200</item>
<item>1800</item>
<item>3600</item>
<item>7200</item>
</string-array>
<string name="no_user_pass">请设定用户名和密码</string>
<string name="pref_gen_hostname">主机名</string>
<string name="pref_gen_hostname_desc">主机名发送到 Uptime 项目</string>
</resources>

View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DroidUptime</string>
<string name="about">DroidUptime 套用是由 Carlos Silva 依 www.uptimeprj.com 的正常執行時間資料開發的。如果您喜歡這個套用請到 www.r3pek.org 或 Uptime 項目的首頁捐助, 謝謝!</string>
<string name="status_running">執行中</string>
<string name="status_stopped">已停止</string>
<string name="operation_start">開始</string>
<string name="operation_stop">停止</string>
<string name="menu_about">關於</string>
<string name="menu_setup">設定</string>
<string name="btn_ok">確定</string>
<string name="btn_cancel">取消</string>
<string name="servicestatus">服務狀態:</string>
<string name="uptime">正常執行時間:</string>
<string name="lastupdate">最近更新:</string>
<string name="message">該套用需要註冊, www.uptimeprj.com 這樣您就可以跟蹤您的正常執行時間。 註冊完之後請回到這裡並在設定功能表中填寫使用者名稱和密碼。</string>
<string name="notyetupdated">還沒有更新</string>
<string name="months"></string>
<string name="days"></string>
<string name="hours"></string>
<string name="minutes">分和</string>
<string name="seconds"></string>
<string name="pref_auth_cat">驗證</string>
<string name="pref_auth_user">使用者名稱</string>
<string name="pref_auth_pass">密碼</string>
<string name="pref_gen_cat">概況General</string>
<string-array name="update_intervals">
<item>10 分鐘</item>
<item>20 分鐘</item>
<item>30 分鐘</item>
<item>1 小時</item>
<item>2 小時</item>
</string-array>
<string name="pref_gen_update_int">更新間隔</string>
<string name="pref_gen_update_int_desc">多久提交更新 (需重啟該服務)</string>
<string-array name="update_intervals_values">
<item>600</item>
<item>1200</item>
<item>1800</item>
<item>3600</item>
<item>7200</item>
</string-array>
<string name="no_user_pass">請設定使用者名稱和密碼</string>
<string name="pref_gen_hostname">主機名</string>
<string name="pref_gen_hostname_desc">主機名發送到 Uptime 項目</string>
</resources>

10
res/values/attrs.xml Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="com.admob.android.ads.AdView">
<attr name="backgroundColor" format="color" />
<attr name="primaryTextColor" format="color" />
<attr name="secondaryTextColor" format="color" />
<attr name="keywords" format="string" />
<attr name="refreshInterval" format="integer" />
</declare-styleable>
</resources>

13
res/xml/preferences.xml Normal file
View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:key="preferences">
<PreferenceCategory android:title="@string/pref_auth_cat" android:key="auth">
<EditTextPreference android:key="username" android:title="@string/pref_auth_user"></EditTextPreference>
<EditTextPreference android:key="password" android:title="@string/pref_auth_pass" android:password="true" ></EditTextPreference>
</PreferenceCategory>
<PreferenceCategory android:key="general" android:title="@string/pref_gen_cat">
<ListPreference android:entries="@array/update_intervals" android:key="pref_gen_update_int" android:summary="@string/pref_gen_update_int_desc" android:title="@string/pref_gen_update_int" android:entryValues="@array/update_intervals_values"></ListPreference>
<EditTextPreference android:summary="@string/pref_gen_hostname_desc" android:title="@string/pref_gen_hostname" android:key="pref_gen_hostname"></EditTextPreference>
</PreferenceCategory>
</PreferenceScreen>