From 9cd18ec26af504073e1726891c24a7957c6e3e04 Mon Sep 17 00:00:00 2001 From: markholland Date: Sat, 27 Apr 2013 05:53:47 +0000 Subject: [PATCH] 2013-04-27 Mark Holland * assets/database/pandroid.zip: Added buffer size initial value. * layout: Added buffer size text edit. * src/pandroid/agent/Core.java: Added variable for buffer size with initial value of 256KB. Moved all preference reading/editing to HelperSharedPreferences. * src/pandroid/agent/DataBaseHandler.java: Now extends sqliteassethelper library. * src/pandroid/agent/HelperSharedPreferences: New helper class in attempt to mitigate SharedPreferences loss. * src/pandroid/agent/PandroidAgent.java: Removed SharedPreferences references and methods. * src/pandroid/agent/PandroidAgentListener.java: Rewritten all get and put preferences to use HelperSharedPreferences instead. * src/pandroid/agent/Setup.java: Added views for buffer size. * src/pandroid/agent/SMSBroadcastReceiver.java: Changed to use HelperSharedPreferences. * values: Added buffer size to all strings. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/android/ChangeLog | 46 +- .../android/assets/databases/pandroid.zip | Bin 1254 -> 1353 bytes pandora_agents/android/res/layout/setup.xml | 13 + .../android/res/layout/setupnosim.xml | 12 + .../android/res/values-de/strings.xml | 2 + .../android/res/values-en/strings.xml | 2 + .../android/res/values-es/strings.xml | 2 + .../android/res/values-fr/strings.xml | 2 + .../android/res/values-it/strings.xml | 2 + .../android/res/values-ja/strings.xml | 2 + .../android/res/values-pt/strings.xml | 2 + .../android/res/values-zh/strings.xml | 2 + pandora_agents/android/res/values/strings.xml | 2 + .../android/src/pandroid/agent/Core.java | 291 ++++----- .../src/pandroid/agent/DataBaseHandler.java | 557 +++--------------- .../src/pandroid/agent/PandroidAgent.java | 17 +- .../pandroid/agent/PandroidAgentListener.java | 231 ++++---- .../pandroid/agent/SMSBroadcastReceiver.java | 10 +- .../android/src/pandroid/agent/Setup.java | 8 +- .../android/src/pandroid/agent/Status.java | 1 - 20 files changed, 404 insertions(+), 800 deletions(-) diff --git a/pandora_agents/android/ChangeLog b/pandora_agents/android/ChangeLog index b45aaca565..853054c629 100644 --- a/pandora_agents/android/ChangeLog +++ b/pandora_agents/android/ChangeLog @@ -1,3 +1,32 @@ +2013-04-27 Mark Holland + + * assets/database/pandroid.zip: Added buffer size initial value. + + * layout: Added buffer size text edit. + + * src/pandroid/agent/Core.java: Added variable for buffer size + with initial value of 256KB. Moved all preference reading/editing + to HelperSharedPreferences. + + * src/pandroid/agent/DataBaseHandler.java: Now extends + sqliteassethelper library. + + * src/pandroid/agent/HelperSharedPreferences: New helper class in + attempt to mitigate SharedPreferences loss. + + * src/pandroid/agent/PandroidAgent.java: Removed SharedPreferences + references and methods. + + * src/pandroid/agent/PandroidAgentListener.java: Rewritten all get + and put preferences to use HelperSharedPreferences instead. + + * src/pandroid/agent/Setup.java: Added views for buffer size. + + * src/pandroid/agent/SMSBroadcastReceiver.java: Changed to use + HelperSharedPreferences. + + * values: Added buffer size to all strings. + 2013-04-26 Mark Holland * src/pandroid/agent/Core.java: Single SharedPreferences and @@ -16,8 +45,8 @@ * src/pandroid/agent/PandroidAgentTentacle.java: Changed socket to timeout after 1000ms. - * src/pandroid/agent/SMSBroadcastReceiver.java: Changed SharedPreferences - to static version from PandroidAgent.java + * src/pandroid/agent/SMSBroadcastReceiver.java: Changed + SharedPreferences to static version from PandroidAgent.java * Pandroid Agent v3.0_iso-8859-1.apk: Updated to include latest changes. @@ -40,6 +69,12 @@ 2013-04-25 Mark Holland + * assets/database/pandroid.zip: zipped sqlite3 + database containing all default values. + + * libs/android-sqlite-asset-helper.jar: library to facilitate + database operations. Only temporarily being used. + * src/pandroid/agent/Core.java: Changed get and update database values methods to support new DataBaseHandler. @@ -51,12 +86,7 @@ * src/pandroid/agent/PandroidAgentListener.java: changed SimIDReport to simIDReport to reflect database. - * assets/database/pandroid.zip: zipped sqlite3 - database containing all default values. - - * libs/android-sqlite-asset-helper.jar: library to facilitate - database operations. Only temporarily being used. - + 2013-04-23 Mark Holland * src/pandroid/agent/Core.java: Migrated from shared diff --git a/pandora_agents/android/assets/databases/pandroid.zip b/pandora_agents/android/assets/databases/pandroid.zip index 6501112b7b52c6dd3be432f0f3728fa46d6f43e2..c938e5bc0752546c731a2e23b92e35e28bb15a93 100644 GIT binary patch delta 1310 zcmV+(1>ySU3CRk7P)h>@6aWAK2mqKkn?j11q>!Bi0000K000XB8~|`(Ze((AX=E;B zVpUWL00VGbdr@v&dr@_G3jhHG=mP)%1n2_*0PR>!ZyQAzp557yl*C;-ZsIf>CtIh* z35}C=(zFG_hZ7rWYA3-TY04!Ud&kb={jg@o26I5<3p9aHx=&@y3cbLE?}yj1n`=w0ssVd z4S^Gg?2`K00{CwTAn|)Vzz4%w06%750}SxLfhi705((jGl%k4>k*yQQ&<`w3k&Y-j z-5%O1WKyMnj9N-<<}zyRG#yhHVy06?CXT74%zjBtXI@X0b0sy7?SpbLzDR`ONIWha z&3B{irnb|CooxCbohqe#4bd0JN2v=3*|eJ7E@j@x6x7{9HlHfoSMO%-FR9z9e5Mt?BZLDh-u1X*RT*JzyN9QGQS#C8; zhK03%P)q{Xy+RHYe09HNa~;jWHN+K4KFuuPDp1?QMOLXq1jwCox(T^yQ~Sbp4c zr)42~8(DZHDuIarH_03&QqHH_Vs2Np64aeR(#MK72xghJxG|MWQ zwcBj|4(Swd(;-wh+%7qFnFUe`4zdip?or2o!)B(q(>vHSouW~*C{PCnd1valKXY^AnukY0#D3QoyHCKYoHMK%kie~f z9^0!cUytaR1d>V`w~Z<;ck9PTPmZ#xQ@S3%*Zzsy%zcPYamzC&lF=JnGB*31 z`(<#A%U~0^E)yNS|2!C5W${3Nj~PqyGl_TyfELvF@pgD3`m5tB%#Tb7vR#&GSJbu8 zGM^yvgw!*QCwMofU(>bV5_e{u=(sk1o%b^OwOb26&)3)W>8=)7WUB<4J*|}&n5W*s z%nf}13-B+%J_8Ie!1=(iAV#|XI{X7rO928N0~7!N00;n>IGaL>n52*fodf^?02Gs% U1SA7+Tziwi1Rw_D1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)MHfidzXPz%h%E)uZX7;+rwORd#6C!#7?E7H^k1k?YVWzTQ!otk=Cz&%O_!r zU5AR;wG)#gwj$ieWQuEnI+addm6Wl1%z2mwmn980vF{7gsU4pO!%HF_^pN4SoJlMg z09MqJ1SBcnr+86ycnbgl1n2_*00ig*002-+1qJ{B000310RT||004gk00000zNc9q diff --git a/pandora_agents/android/res/layout/setup.xml b/pandora_agents/android/res/layout/setup.xml index f6bf073ff1..ac146d6c2c 100644 --- a/pandora_agents/android/res/layout/setup.xml +++ b/pandora_agents/android/res/layout/setup.xml @@ -95,6 +95,19 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" /> + + + +