]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
String changes, focus changes.
authorThad Hughes <thad.hughes@gmail.com>
Wed, 21 Dec 2011 01:31:18 +0000 (17:31 -0800)
committerThad Hughes <thad.hughes@gmail.com>
Wed, 21 Dec 2011 01:31:18 +0000 (17:31 -0800)
AndroidManifest.xml
res/values/strings.xml
src/com/hughes/android/dictionary/DictionaryActivity.java
src/com/hughes/android/dictionary/QuickDicConfig.java
todo.txt

index 0dc4c87cd818166c4843603d14b751daa75f2a86..f2c949b2c7c6d8e7d374cba886e7531f9fcaaf15 100644 (file)
@@ -4,31 +4,45 @@
  
  package="com.hughes.android.dictionary"
  
- android:versionCode="13"
- android:versionName="2.0.4"
- android:installLocation="auto">
+ android:versionCode="14"
+ android:versionName="3.0.0"
+ android:installLocation="preferExternal">
 
  <uses-sdk android:minSdkVersion="4" />
-
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
-
- <application 
-  android:icon="@drawable/icon"
-  android:label="@string/app_name"
-  android:theme="@style/Theme.Light"
-  android:name=".DictionaryApplication" >
+   <!--
+    Because android:minSdkVersion is 3, these parameters default to
+    false, but we need them to be true.
+    See:
+    http://developer.android.com/guide/topics/manifest/supports-screens-element.html
+    -->
+  <supports-screens
+      android:resizeable="true"
+      android:anyDensity="true"
+      android:largeScreens="true"
+      />
+      
+   <!--   android:xlargeScreens="true" />  --> 
+
+  <uses-permission android:name="android.permission.INTERNET" />
+  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+
+  <application 
+      android:icon="@drawable/icon"
+      android:label="@string/app_name"
+      android:theme="@style/Theme.Light"
+      android:name=".DictionaryApplication" >
   
 <!--   
   android:backupAgent="DictionaryBackupAgent"
   -->
 
   <meta-data android:name="com.google.android.backup.api_key"
-   android:value="AEdPqrEAAAAIUa0cU0ZHbBpYXJqm0vVUP5IAjr5D4iUeX7UwiQ" />
+      android:value="AEdPqrEAAAAIUa0cU0ZHbBpYXJqm0vVUP5IAjr5D4iUeX7UwiQ" />
 
   <activity android:name=".DictionaryListActivity"
-   android:label="@string/app_name">
+      android:label="@string/app_name">
 
     <intent-filter>
       <action android:name="android.intent.action.MAIN" />
index 8422b44dcd0753fa0d05e573fad6c32a86a85ed5..faae24dec36fd6cae977b115533c4e89c80c97c6 100644 (file)
@@ -51,7 +51,7 @@
        <string name="downloadDictionary">Download dictionary...</string>
        <string name="switchToLanguage">Switch to %s</string>
        <string name="preferences">Preferences...</string>
-       <string name="about">About...</string>
+       <string name="about">About QuickDic...</string>
        <string name="addToWordList">Add to word list: %s</string>
   <string name="failedAddingToWordList">Failure adding to word list: %s</string>
   <string name="unzippingDictionary">Unzipping dictionary...</string>
index 8353fba6b86ba25c5aa6da39cc4eff2bd9ac4fe1..e6eb3d1297054fa7b1f0945e4b66d71b4e46ebb4 100644 (file)
@@ -496,6 +496,9 @@ public class DictionaryActivity extends ListActivity {
   }\r
 \r
   void onCopy(final RowBase row) {\r
+    // Request focus so that if we start typing again, it clears the text input.\r
+    getListView().requestFocus();\r
+\r
     Log.d(LOG, "Copy, row=" + row);\r
     final StringBuilder result = new StringBuilder();\r
     result.append(row.getRawText(false));\r
index 74ad1d8f58ef5d4c73a03e7179d717c1aa502972..b042d401f6d4174ad13810395bf8af917d6f8458 100644 (file)
@@ -34,7 +34,7 @@ public final class QuickDicConfig implements Serializable {
     addDefaultDictionaries();
   }
   
-  static final String BASE_URL = "http://dictionarydata.quickdic-dictionary.googlecode.com/git/outputs/";
+  static final String BASE_URL = "http://quickdic-dictionary.googlecode.com/files/";
 
   public void addDefaultDictionaries() {
     {
index 01ef3c9381a246b10b0de24f75a7ed9324954c57..02d4b7b7944f643af2bc3e10901e2c02dd298099 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -1,17 +1,15 @@
-new version requires re-download of ~25MB dictionary file.
-
-* wiktionary
 * multi word search
+* link to leo, dict.cc
 * source in context menu
 * quiz
-* link to leo, dict.cc
 * colorize things
-* better tokenization?
-* test email
-* dict manager
-* publish 2.0 dictionary
 
 
 done:
 * sorting of entries
 * better Row/Entry classes?
+* wiktionary
+* better tokenization?
+* publish 2.0 dictionary
+* test email
+* dict manager