diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index b9412ba..2b841d5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,7 +1,7 @@
+ package="net.thauvin.erik.android.googsms" android:installLocation="auto"
+ android:versionName="0.2" android:versionCode="2">
@@ -12,4 +12,5 @@
+
\ No newline at end of file
diff --git a/default.properties b/default.properties
new file mode 100644
index 0000000..c5d5335
--- /dev/null
+++ b/default.properties
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Indicates whether an apk should be generated for each density.
+split.density=false
+# Project target.
+target=android-8
+apk-configurations=
diff --git a/src/net/thauvin/erik/android/googsms/R.java b/gen/net/thauvin/erik/android/googsms/R.java
similarity index 100%
rename from src/net/thauvin/erik/android/googsms/R.java
rename to gen/net/thauvin/erik/android/googsms/R.java
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 4ea0b65..12e1b84 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -6,6 +6,7 @@
- Local Search
- Local Movies
- Local Weather
+ - Airlines
- Airports
- Area Codes
- Calculator
@@ -20,17 +21,20 @@
- Q&A
- Sports
- Stocks
+ - Time
- Translation
- Weather
- Zip Codes
+ - Help
-
+
- %s
- web %s
- %s %l
- movies %%s %l
- weather %l
+ - %s
- %s airport
- area code %s
- %s
@@ -45,17 +49,20 @@
- %s
- score %s
- stock %s
+ - time %s
- translate %s
- weather %s
- zip code %s
+ - help %s
-
+
- blockbuster seattle wa
- - search terms, e.g.: t-mobile g1
+ - search terms, e.g.: nexus one
- business listing, sushi, pizza, etc.
- No query or current movie name
- No query required
+ - united airlines
- airport code, e.g.: sfo
- area code, e.g.: 650
- 1 us pint in liters, 5+2/2, etc.
@@ -70,8 +77,10 @@
- india population
- NBA/NHL/MLB/NFL/NCAA team
- ticker symbol, e.g.: goog
+ - new york, ny
- hello in french
- new york, ny
- 90210
+ - search feature, e.g.: local, etc.
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9156f9d..b7fd93c 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -9,7 +9,7 @@
Please enter a query...
Please set your location...
466453
- © 2008 Erik C. Thauvin\nAll Rights Reserved\n\nerik@thauvin.net\n\nhttp://mobile.thauvin.net
+ © 2008-10 Erik C. Thauvin\nAll Rights Reserved\n\nerik@thauvin.net\n\nhttp://mobile.thauvin.net/
About
Preferences
OK
diff --git a/screenshots/1.png b/screenshots/1.png
new file mode 100644
index 0000000..5e9b436
Binary files /dev/null and b/screenshots/1.png differ
diff --git a/screenshots/2.png b/screenshots/2.png
new file mode 100644
index 0000000..d10b645
Binary files /dev/null and b/screenshots/2.png differ
diff --git a/src/net/thauvin/erik/android/googsms/GoogSMS.java b/src/net/thauvin/erik/android/googsms/GoogSMS.java
index 534ca47..2e8367d 100644
--- a/src/net/thauvin/erik/android/googsms/GoogSMS.java
+++ b/src/net/thauvin/erik/android/googsms/GoogSMS.java
@@ -1,7 +1,7 @@
/*
* @(#)GoogSMS.java
*
- * Copyright (c) 2008, Erik C. Thauvin (http://erik.thauvin.net/)
+ * Copyright (c) 2008-2010, Erik C. Thauvin (http://erik.thauvin.net/)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -50,7 +50,6 @@ import android.os.Bundle;
import android.telephony.gsm.SmsManager;
import android.text.ClipboardManager;
import android.text.TextUtils;
-import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
@@ -70,8 +69,11 @@ import android.widget.Toast;
* @created Nov 2, 2008
* @since 1.0
*/
+@SuppressWarnings("deprecation")
public class GoogSMS extends Activity
{
+ private static final boolean DEBUG = false;
+
private static final int MAX_HISTORY_SIZE = 15;
private static final int MENU_ABOUT = 0;
private static final int MENU_PREFS = 1;
@@ -257,13 +259,18 @@ public class GoogSMS extends Activity
final SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(getSmsNumber(), null, s2, null, null);
-
+
addHistory(query);
setAutoComplete(queryFld);
- Toast.makeText(GoogSMS.this, R.string.main_sms_sent_txt, Toast.LENGTH_SHORT).show();
-
- Log.v("SMS SENT: ", s2);
+ if (DEBUG)
+ {
+ Toast.makeText(GoogSMS.this, s2, Toast.LENGTH_LONG).show();
+ }
+ else
+ {
+ Toast.makeText(GoogSMS.this, R.string.main_sms_sent_txt, Toast.LENGTH_SHORT).show();
+ }
}
}