Fixed missing "Send SMS" button in Android client. We showed the SMS number but were unable to launch the SMS app without this.

git-svn-id: https://zxing.googlecode.com/svn/trunk@579 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin 2008-09-11 15:37:17 +00:00
parent 40d1a24e50
commit 39bc2d9bdd
2 changed files with 3 additions and 0 deletions

View file

@ -26,6 +26,7 @@
<string name="button_ok">OK</string>
<string name="button_open_browser">Open browser</string>
<string name="button_show_map">Show map</string>
<string name="button_sms">Send SMS</string>
<string name="contents_contact">Contact info</string>
<string name="contents_email">Email address</string>

View file

@ -85,6 +85,8 @@ final class ResultHandler implements Button.OnClickListener {
buttonText = R.string.button_open_browser;
} else if (type.equals(ParsedResultType.EMAIL_ADDRESS)) {
buttonText = R.string.button_email;
} else if (type.equals(ParsedResultType.SMS)) {
buttonText = R.string.button_sms;
} else if (type.equals(ParsedResultType.UPC)) {
buttonText = R.string.button_lookup_product;
} else if (type.equals(ParsedResultType.TEL)) {