Commit graph

128 commits

Author SHA1 Message Date
dswitkin fb4c6f9d48 Changed the Intent to send emails to address issue 145.
git-svn-id: https://zxing.googlecode.com/svn/trunk@847 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-10 20:08:20 +00:00
srowen f2a9165b7c Refactored width/height values into superclass and enabled construction of RGBMonochromeBitmapSource from a Bitmap
git-svn-id: https://zxing.googlecode.com/svn/trunk@846 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-09 21:25:45 +00:00
srowen 5546f77004 Make public to enable reuse; add convenience constructor for no cropping, or cropping without a Rect object. Also optimize a few things.
git-svn-id: https://zxing.googlecode.com/svn/trunk@843 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-06 14:06:05 +00:00
srowen 1c539c66a4 Convert asserts to exceptions where the conditions could be false in a correct, bug-free program -- makes sure caller errors are caught and reported meaningfully
git-svn-id: https://zxing.googlecode.com/svn/trunk@840 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-05 13:06:19 +00:00
srowen 89176baf0c git-svn-id: https://zxing.googlecode.com/svn/trunk@835 59b500cc-1b3d-0410-9834-0bbf25fbcc57 2009-01-30 18:19:16 +00:00
srowen 37fbeaa36a Small updates from code inspection
git-svn-id: https://zxing.googlecode.com/svn/trunk@823 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-01-10 17:01:34 +00:00
srowen 6d8febc69e git-svn-id: https://zxing.googlecode.com/svn/trunk@813 59b500cc-1b3d-0410-9834-0bbf25fbcc57 2009-01-03 14:30:45 +00:00
srowen 0e253bbad1 git-svn-id: https://zxing.googlecode.com/svn/trunk@812 59b500cc-1b3d-0410-9834-0bbf25fbcc57 2009-01-03 14:25:49 +00:00
srowen 3fc5820213 Oops, appears I accidentally committed a typo -- addressing that
git-svn-id: https://zxing.googlecode.com/svn/trunk@811 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-01-02 18:41:04 +00:00
srowen 29f9ff964c Commit additional check for null as suggested on discussion group
git-svn-id: https://zxing.googlecode.com/svn/trunk@810 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-01-02 14:32:24 +00:00
srowen 9433c5955b Add more unit tests for client.result, and more small code tweaks.
git-svn-id: https://zxing.googlecode.com/svn/trunk@809 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-30 15:31:25 +00:00
dswitkin 2d9c5fbc5f Fixed a broken inline image in the HTML help.
git-svn-id: https://zxing.googlecode.com/svn/trunk@786 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-16 20:18:09 +00:00
srowen 131cfe4c5c More reckless refactoring and code style tweaks -- mostly adding braces around conditional/loops, and using @Override
git-svn-id: https://zxing.googlecode.com/svn/trunk@784 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-11 23:34:49 +00:00
dswitkin c91265df17 Added two new preferences: vibrate on scan, and copy contents to clipboard on scan.
git-svn-id: https://zxing.googlecode.com/svn/trunk@783 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-11 17:09:12 +00:00
srowen 1f2699c196 Small speedups in time-related code
git-svn-id: https://zxing.googlecode.com/svn/trunk@780 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-09 16:20:32 +00:00
dswitkin d300a96e7a Updated the permission to read bookmarks to conform to the new Android API.
git-svn-id: https://zxing.googlecode.com/svn/trunk@777 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-05 16:09:36 +00:00
dswitkin 3ef2b0b618 Fixed a bug in geo coordinate display, where we were always tacking on "deg N" and "deg E", which doesn't make sense. Really, N/S/E/W needs to be determined by sign, and the sign removed for W and S. However, since none of that can be translated easily, I removed it, and we now just print lat, long which is an acceptable standard.
I also bumped the Android client to v2.4 final.

git-svn-id: https://zxing.googlecode.com/svn/trunk@776 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-03 16:14:56 +00:00
dswitkin e63f1c843c Update the manifest to 2.4 beta 2.
git-svn-id: https://zxing.googlecode.com/svn/trunk@775 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-02 22:27:12 +00:00
dswitkin 27380eb838 Worked around a bug in Android 1.0 with using gravity and padding at the same time, which broke the Share UI.
git-svn-id: https://zxing.googlecode.com/svn/trunk@774 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-02 22:10:27 +00:00
dswitkin 271c9b2dde New HTML edits from Joseph, and added a fading edge to the WebView to make it more obvious that there is more content the user can scroll to.
git-svn-id: https://zxing.googlecode.com/svn/trunk@773 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-02 20:26:21 +00:00
dswitkin 7f5c93a71d Added a specific message for unsearchable books, and changed the Exit button in the help to Done to be a little clearer.
git-svn-id: https://zxing.googlecode.com/svn/trunk@766 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-01 16:10:28 +00:00
dswitkin e52e695dee Bumped the version number to create v2.4 beta 1.
git-svn-id: https://zxing.googlecode.com/svn/trunk@763 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-26 15:30:34 +00:00
dswitkin fd327c94c4 Created an HTML help system, which is hooked up to the Menu/Help button. It also runs automatically the first time a new version of the app is run on a particular device. I wrote up a bunch of pages, which feature great art by Joseph, including a What's New page that we can edit for every release.
git-svn-id: https://zxing.googlecode.com/svn/trunk@761 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-25 22:12:02 +00:00
dswitkin 4e5aa67970 Made phone numbers hyphenated in the display below the encoded QR Code.
git-svn-id: https://zxing.googlecode.com/svn/trunk@759 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-22 01:20:25 +00:00
dswitkin 8df34ebb42 Added great new artwork from Joseph for the Share UI. Also renamed the Share menu item to be clearer.
git-svn-id: https://zxing.googlecode.com/svn/trunk@758 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-21 21:04:11 +00:00
dswitkin 6d7d507e27 Forced the Android client to only decode the existing 7 formats, thereby excluding ITF for the time being.
git-svn-id: https://zxing.googlecode.com/svn/trunk@751 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-20 21:05:50 +00:00
dswitkin 960a169da7 Added support for encoding multiple email addresses and phone numbers using the new constants I added to the Contacts app for Android 1.1.
git-svn-id: https://zxing.googlecode.com/svn/trunk@750 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-20 19:58:33 +00:00
dswitkin 7b0a66862d Updated the Android client to use native/local QR Code encoding. For now it still runs on a thread and has a temporary "Working..." dialog. As I optimize a bit further, these may not be necessary.
git-svn-id: https://zxing.googlecode.com/svn/trunk@739 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-19 20:54:39 +00:00
dswitkin 87ab9a5aa5 Added support for adding a contact with multiple email addresses and phone numbers. This change requires Android 1.1 to work, but is harmless on 1.0.
git-svn-id: https://zxing.googlecode.com/svn/trunk@723 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-18 21:31:35 +00:00
srowen ecc05c1ef3 Appear to have fixed the URL escaping issues this time without regression
git-svn-id: https://zxing.googlecode.com/svn/trunk@710 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-16 10:20:20 +00:00
srowen 002d80eed2 Added note about dex's issue with post-optimization debug symbol table
git-svn-id: https://zxing.googlecode.com/svn/trunk@700 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-14 14:13:45 +00:00
srowen ad307ebc0b making stuff final, weakening types, etc. per IntelliJ analysis
git-svn-id: https://zxing.googlecode.com/svn/trunk@693 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-13 13:14:53 +00:00
dswitkin bbbef0d716 Wrote a new bookmark picker activity for use by the Share button, because I couldn't get the platform version to work.
git-svn-id: https://zxing.googlecode.com/svn/trunk@691 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-12 15:42:44 +00:00
dswitkin acd409b094 Fixed a regression in the QR Code encoder. The contents do not need to be run through URLEncoder first.
git-svn-id: https://zxing.googlecode.com/svn/trunk@690 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-12 14:40:23 +00:00
dswitkin bb52a165d0 Changed the ChartServer and Search Book Contents URLs back to google.com instead of using the LocaleManager, as they are API calls, not user-facing websites.
git-svn-id: https://zxing.googlecode.com/svn/trunk@687 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-11 19:19:11 +00:00
dswitkin e9a6e8e906 Added support for Furigana using the SOUND field in MECARD. AddressBookParsedResult now has a pronunciation field to represent this. I'm not aware of whether this is supported in other formats like VCARD, so they all pass null for now.
git-svn-id: https://zxing.googlecode.com/svn/trunk@686 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-11 16:31:27 +00:00
srowen 88b77d67db Now attempts to use locale-specific Google property in client. Also made some stuff final that can be.
git-svn-id: https://zxing.googlecode.com/svn/trunk@685 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-11 15:32:31 +00:00
dswitkin 5a26635782 Somehow the IntelliJ Subversion integration did not commit these deleted files when I did the rename.
git-svn-id: https://zxing.googlecode.com/svn/trunk@684 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-11 14:48:11 +00:00
dswitkin 9de8f5e1f0 Hid the Share menu if the results screen was showing, since it didn't make sense. Also change the autofocus delay to 1.5 seconds, to make it hunt a little less, and give the autoexposure system more time to run.
git-svn-id: https://zxing.googlecode.com/svn/trunk@683 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-10 22:47:09 +00:00
dswitkin aef1dedb61 Did a bunch of renaming, there was no need for the Barcodes prefix.
git-svn-id: https://zxing.googlecode.com/svn/trunk@682 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-10 20:50:34 +00:00
dswitkin f21c34ae16 First pass at adding a UI for sharing data via QR Codes. There's now a Share button in the main capture menu which leads to a choice of contacts, bookmarks, and clipboard contents, which will be encoded and shown full screen. Launching the bookmarks picker currently crashes with a permission problem, which I'm investigating.
git-svn-id: https://zxing.googlecode.com/svn/trunk@681 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-10 20:35:33 +00:00
dswitkin 99f49760da Renamed launcher icon.
git-svn-id: https://zxing.googlecode.com/svn/trunk@676 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-07 15:07:54 +00:00
dswitkin de83fdf806 Fixed two leaks when using AndroidHttpClient.
git-svn-id: https://zxing.googlecode.com/svn/trunk@675 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-06 19:55:38 +00:00
dswitkin 034b6ef1f2 Added support for landscape mode when encoding QR Codes, and made some small layout improvements.
git-svn-id: https://zxing.googlecode.com/svn/trunk@672 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-06 17:17:07 +00:00
dswitkin d9dce6b108 Finished renaming UPC --> Product in a few places.
git-svn-id: https://zxing.googlecode.com/svn/trunk@671 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-06 16:25:39 +00:00
dswitkin 4c5c81e8a5 Added support for supplying a postal address when encoding a QR Code.
git-svn-id: https://zxing.googlecode.com/svn/trunk@670 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-06 16:13:16 +00:00
srowen e6e3472471 Renamed UPC result type to Product, and introduced an idea of 'product ID' and 'normalized product ID' to account for UPC-E, where the actual visible ID is different from what we may want to search for as a key. Updated clients to use this too.
git-svn-id: https://zxing.googlecode.com/svn/trunk@668 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-04 12:08:19 +00:00
dswitkin ef7c421a66 Fixed Search Book Contents when built under ProGuard.
git-svn-id: https://zxing.googlecode.com/svn/trunk@667 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-03 16:13:56 +00:00
dswitkin 8671371c59 Did a big refactoring on the MonochromeBitmapSource. I removed all the caching luminance calls and converted them to getting luminance data on demand. This saved another 33,000 function calls per rejected scan, good for another 15 ms savings. I also moved the luminance calls to BaseMonochromeBitmapSource and made them protected, to indicate that the decoders shouldn't use them.
Overall the recent optimizations took one rejected scan from 307 to 135 ms, which is definitely noticeable.

WARNING: I am not able to build the Bug or J2ME clients, but I believe they are correct.

git-svn-id: https://zxing.googlecode.com/svn/trunk@656 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-10-30 18:44:10 +00:00
dswitkin 1d8b533310 Fixed the Android client when using ProGuard. The ViewfinderView constructor is loaded dynamically by the XML view inflation code, which requires explicitly preserving it.
git-svn-id: https://zxing.googlecode.com/svn/trunk@654 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-10-30 15:41:52 +00:00