Version 0.2 with SD card installtion support (FroYo).

Also added Airlines & Time query options.
This commit is contained in:
Erik C. Thauvin 2010-06-29 12:59:19 +00:00
parent 6abee2bae2
commit 7cf4a61091
8 changed files with 43 additions and 12 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.thauvin.erik.android.googsms" android:versionCode="1"
android:versionName="0.1">
package="net.thauvin.erik.android.googsms" android:installLocation="auto"
android:versionName="0.2" android:versionCode="2">
<uses-permission android:name="android.permission.SEND_SMS" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".GoogSMS" android:label="@string/app_name">
@ -12,4 +12,5 @@
</activity>
<activity android:name=".PrefsScreen" android:label="@string/app_name" />
</application>
<uses-sdk android:minSdkVersion="2"></uses-sdk>
</manifest>

14
default.properties Normal file
View file

@ -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=

View file

@ -6,6 +6,7 @@
<item>Local Search</item>
<item>Local Movies</item>
<item>Local Weather</item>
<item>Airlines</item>
<item>Airports</item>
<item>Area Codes</item>
<item>Calculator</item>
@ -20,17 +21,20 @@
<item>Q&amp;A</item>
<item>Sports</item>
<item>Stocks</item>
<item>Time</item>
<item>Translation</item>
<item>Weather</item>
<item>Zip Codes</item>
<item>Help</item>
</string-array>
<string-array name="main_cmd_array">
<item>%s</item>
<item>web %s</item>
<item>%s %l</item>
<item>movies %%s %l</item>
<item>weather %l</item>
<item>%s</item>
<item>%s airport</item>
<item>area code %s</item>
<item>%s</item>
@ -45,17 +49,20 @@
<item>%s</item>
<item>score %s</item>
<item>stock %s</item>
<item>time %s</item>
<item>translate %s</item>
<item>weather %s</item>
<item>zip code %s</item>
<item>help %s</item>
</string-array>
<string-array name="main_hint_array">
<item>blockbuster seattle wa</item>
<item>search terms, e.g.: t-mobile g1</item>
<item>search terms, e.g.: nexus one</item>
<item>business listing, sushi, pizza, etc.</item>
<item>No query or current movie name</item>
<item>No query required</item>
<item>united airlines</item>
<item>airport code, e.g.: sfo</item>
<item>area code, e.g.: 650</item>
<item>1 us pint in liters, 5+2/2, etc.</item>
@ -70,8 +77,10 @@
<item>india population</item>
<item>NBA/NHL/MLB/NFL/NCAA team</item>
<item>ticker symbol, e.g.: goog</item>
<item>new york, ny</item>
<item>hello in french</item>
<item>new york, ny</item>
<item>90210</item>
<item>search feature, e.g.: local, etc.</item>
</string-array>
</resources>

View file

@ -9,7 +9,7 @@
<string name="main_query_err_txt">Please enter a query...</string>
<string name="main_location_err_txt">Please set your location...</string>
<string name="default_google_sms">466453</string>
<string name="about_txt">© 2008 Erik C. Thauvin\nAll Rights Reserved\n\nerik@thauvin.net\n\nhttp://mobile.thauvin.net</string>
<string name="about_txt">© 2008-10 Erik C. Thauvin\nAll Rights Reserved\n\nerik@thauvin.net\n\nhttp://mobile.thauvin.net/</string>
<string name="about_menu_txt">About</string>
<string name="prefs_menu_txt">Preferences</string>
<string name="alert_dialog_ok">OK</string>

BIN
screenshots/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
screenshots/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View file

@ -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();
}
}
}