Commit graph

250 commits

Author SHA1 Message Date
YuviPanda
e6a8f4d626 Cleanup contributions state when service starts.
This will clean up stale 'Uploading' or 'Queued' entries that
failed to do so because of service crashes
2013-02-08 17:34:50 +05:30
YuviPanda
297f3277de Tap to retry failed uploads implemented
UploadService can now be bound to as a local service. Yay!
2013-02-08 16:34:41 +05:30
YuviPanda
91aa440eac Refactor a little bit to avoid too much Intent passing around 2013-02-08 03:08:52 +05:30
YuviPanda
9ea843b8a9 Make UploadService a Service rather than an IntentService 2013-02-08 02:57:38 +05:30
YuviPanda
ba76b5fe0f Remove dead code 2013-02-07 04:26:10 +05:30
YuviPanda
af73954cd1 Include tracking template on all uploads 2013-02-07 03:50:37 +05:30
YuviPanda
1986b2455c Do not add duplicate photos when syncing 2013-02-07 03:39:46 +05:30
YuviPanda
b8dd312869 Save canonical filename of uploaded files
Also display filenames in a 'pretty'ier way
2013-02-06 19:16:51 +05:30
YuviPanda
b4c1c2a06c Change DOWNLOAD to UPLOAD appropriately in constants
I am a geraffe
2013-02-06 17:08:27 +05:30
YuviPanda
9f51fdf9b4 Re-jiggle sort order of contributions 2013-02-06 03:37:05 +05:30
YuviPanda
859065f2d9 Enable contributions sync provider by default! 2013-02-06 03:21:43 +05:30
YuviPanda
eac6807fe3 Added Sync Provider for syncing previous contributions 2013-02-06 03:05:01 +05:30
YuviPanda
4abf3156e7 Enforce signin before my contributions is visible 2013-02-04 19:38:38 +05:30
YuviPanda
23af3c16ce Support for content URIs that do not report their size
Also brought back ACTION_GET_CONTENT - people should pick from wherever
they want!
2013-02-04 03:01:51 +05:30
YuviPanda
399609a9d3 Only pick images that we are 100% sure we can upload
Means nothing that is synced to picasa, etc
2013-02-04 02:46:21 +05:30
YuviPanda
cff7ff8437 Add clarifying comment 2013-02-04 02:14:30 +05:30
YuviPanda
959cff3ae2 Show upload progress in my contributions
Abandoned local broadcast based approach, and 'went with the flow'.
Now have a 'transferred' column in sqlite database & the
content provider
2013-02-04 01:28:30 +05:30
YuviPanda
d1f0539bbe Fixed typo when checking for upload success 2013-02-04 01:26:21 +05:30
YuviPanda
59caee38a9 Show failed uploads in my contributions 2013-02-04 00:34:59 +05:30
YuviPanda
a57d0316f8 Have 'Pick from Camera' work on Non-Samsung phones
Implement hack laid out in http://stackoverflow.com/a/5054673/17865

Thanks to Reedy & ragesoss for testing!
2013-02-03 01:58:55 +05:30
YuviPanda
ad0377a20a Added ACRA error reporting (via Email) 2013-02-03 00:09:01 +05:30
YuviPanda
35d9e8f69c Adjustmenst for better experience in tablets 2013-02-02 23:33:19 +05:30
YuviPanda
d319132c1b Avoid loading the same image multiple times.
Prevents 'flashing' when content of a list item changes
2013-02-02 22:48:30 +05:30
YuviPanda
9724bfd8f5 Sort images in my contributions as people would expect them to 2013-02-02 20:01:39 +05:30
YuviPanda
006558ccd3 Add support for uploading pictures taken from camera 2013-02-02 17:49:38 +05:30
YuviPanda
999b8a0c0e Added menu option to Upload from Gallery 2013-02-02 17:12:33 +05:30
YuviPanda
86711188e1 Moved strings in code back to strings.xml 2013-02-02 16:17:17 +05:30
YuviPanda
569143e44b Indentation fixing.
Unsure how it got so out of whack to begin with
2013-02-02 15:30:01 +05:30
YuviPanda
da92ec7235 Show uploaded date in my contributions 2013-02-02 15:22:25 +05:30
YuviPanda
fe47b00081 Use Android Universal Image Loader library for loading images 2013-02-02 13:31:27 +05:30
YuviPanda
d8c6c304fd Set title for launcher activity appropriately 2013-02-02 03:19:51 +05:30
YuviPanda
822f4eff50 Show contributions only after user has logged in 2013-02-02 02:36:11 +05:30
YuviPanda
1ac8d3d879 Show images of your contributions (from current device) 2013-02-02 02:30:51 +05:30
YuviPanda
e914568f6e Show my contributions when someone taps the Ongoing Notification 2013-02-02 01:45:44 +05:30
YuviPanda
384f3dd166 Fix potential SQL Injection hole 2013-02-01 02:49:27 +05:30
YuviPanda
6228c613b7 Typo Fix 2013-02-01 02:49:13 +05:30
YuviPanda
2260078fa7 Added working (sortof) My Contributions screen
Uses CursorLoader to appropriately load and update stuff as
things change. Need to update UI to show things properly.

Also refactored things a fair bit.
2013-02-01 02:23:29 +05:30
YuviPanda
d1b088581f Use Filename as key for content URI, not id 2013-01-30 23:26:22 +05:30
YuviPanda
64e16ad1cc Add missing DbOpenHelper class (required by prev. commit) 2013-01-30 22:30:42 +05:30
YuviPanda
9540284b00 Added a Contributions Content Provider!
Also refactored Media class into a base class and a Contribution
subclass
2013-01-30 22:28:47 +05:30
YuviPanda
420ec8061c Show queued upload count only when it is > 1 2013-01-30 16:31:08 +05:30
YuviPanda
31f8aa4888 Pass correct length to the upload function 2013-01-30 15:33:54 +05:30
YuviPanda
7919aa07a0 Refactor to send out Broadcasts events when uploading 2013-01-30 05:25:24 +05:30
YuviPanda
dd758a7964 Show count of uploads being queued up 2013-01-30 02:41:02 +05:30
YuviPanda
738cdd4c8a Have the Media class be parcelable 2013-01-30 00:27:47 +05:30
YuviPanda
96eff3fb38 Fixed bug causing delayed notification of uploading being in progress 2013-01-30 00:27:15 +05:30
YuviPanda
6039cb3fea Fix performance problems with notifications freezing the phone.
I am a geraffe.
2013-01-29 14:39:04 +05:30
YuviPanda
aab434d35e Do not force HTTP/1.0
Ryan_Lane updated the https servers to properly handle
Transfer-Encoding: Chunked. No need to force HTTP/1.0 anymore
2013-01-28 21:31:32 +05:30
YuviPanda
b470ef7fc9 Remove Audio support for now 2013-01-28 15:43:00 +05:30
YuviPanda
3a313f3fb3 Mavenized (almost) everything - Transcode feature removed 2013-01-25 03:04:21 +05:30