4
0
mirror of https://github.com/cwinfo/envayasms.git synced 2025-06-25 18:29:24 +00:00

simplify polling UI to use fixed, 15 min intervals

This commit is contained in:
Nir Yariv
2011-01-15 18:38:49 -05:00
parent 8e31033862
commit ec1dc62631
3 changed files with 35 additions and 13 deletions

View File

@ -2,8 +2,25 @@
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<EditTextPreference android:key="pref_target_url" android:title="Target URL" android:summary="URL to load when the SMS is received" android:defaultValue="http://pune.admin.tastykhana.in/admin/index.php/realtime_alerts/smsqueue"></EditTextPreference>
<EditTextPreference android:key="pref_identifier" android:title="SMS Identifier" android:defaultValue="TK " android:summary="Handle only SMS messages starting with this string (leave empty to handle all messages)"></EditTextPreference>
<CheckBoxPreference android:key="pref_poll_switch" android:title="Server Polling" android:disableDependentsState="false" android:summaryOff="Polling is disabled" android:summaryOn="Polling is enabled"></CheckBoxPreference>
<EditTextPreference android:key="pref_poll_interval" android:title="Poll interval" android:defaultValue="5000" android:summary="Polling interval time in minutes"></EditTextPreference>
<EditTextPreference
android:key="pref_target_url"
android:title="Target URL"
android:summary="URL to load when the SMS is received"
android:defaultValue="http://qkhack.appspot.com/kalsms_demo"
></EditTextPreference>
<EditTextPreference
android:key="pref_identifier"
android:title="SMS Identifier"
android:summary="Handle only SMS messages starting with this string (leave empty to handle all messages)"
android:defaultValue="kal "
></EditTextPreference>
<CheckBoxPreference
android:key="pref_poll_switch"
android:title="Server Polling"
android:disableDependentsState="false"
android:summary="Poll target URL every 15 minutes (Note: Polling increased power consumption, and is not supported by all phone models)"
></CheckBoxPreference>
</PreferenceScreen>