Commit Graph

91 Commits

Author SHA1 Message Date
Amir Mohammad Saied 6465ab5c37 Android: Make sure application does not force close if server:port is not set 2011-06-10 12:10:43 -07:00
Daniel Erat 64040340c3 android: Return copies of cached blobs instead of originals.
This should fix
http://code.google.com/p/camlistore/issues/detail?id=3,
"Android client permits mutating the immutable cache".

I'm also removing the call to
URLConnection.guessContentTypeFromStream() in favor of
just using URLConnection.guessContentTypeFromName().
I don't think that the former was ever successful, and it
was hitting the disk from the UI thread.
2011-03-27 14:19:48 -07:00
Daniel Erat 58c678e94e android: add icons for files and directories
trying to get the hang of making stuff in inkscape that
doesn't look awful
2011-03-27 12:07:06 -07:00
Daniel Erat 46870bdbdc android: use a custom adapter in BrowseActivity
no user-visible changes
2011-03-20 13:03:16 -07:00
Daniel Erat 7262d8a736 android: verify downloaded data against digests from blobrefs 2011-03-19 17:06:33 -07:00
Daniel Erat 94bd0ec0c8 android: avoid caching incomplete downloads
when the Content-Length header is supplied, this makes us
check that we received the expected number of bytes.  tested
by ctrl-c-ing the blobserver midway through a download.
2011-03-19 15:49:46 -07:00
Daniel Erat 85a7f38a87 android: limit cache growth
this is lightly-tested but seems to work.
the non-new stuff in res/ is just whitespace cleanup.
2011-03-19 12:15:19 -07:00
Daniel Erat a29346265e android: add DownloadCache class
cache-size-limiting code is untested and unused
2011-03-19 08:20:44 -07:00
Brad Fitzpatrick 816b7ee957 android: https support 2011-03-17 18:41:37 -07:00
Brad Fitzpatrick 077f362e2d android: add tips when SDK isn't configured. 2011-03-17 18:15:25 -07:00
Daniel Erat 78c6b71b87 android: lots of improvements to download service
- don't write search results to disk
- download into memory before writing to disk when
  we have listeners asking for byte arrays
- don't read files while holding the lock
2011-03-17 08:36:43 -07:00
Daniel Erat a8f4774752 android: download files to temporary location
also fix lame inverted-logic bug in cache-checking code :-(
2011-03-16 22:49:42 -07:00
Daniel Erat 406433a138 android: add synchronization-related asserts 2011-03-16 22:25:21 -07:00
Daniel Erat 7d199b97bd android: add missing final to EntryType.mName 2011-03-16 06:55:36 -07:00
Daniel Erat e1f34760cc android: yay, basic file viewing appears to work!
(for simple, single-part files)
2011-03-15 22:43:39 -07:00
Daniel Erat 190f1ef9c6 android: start improving handling of different types of entries 2011-03-15 22:14:39 -07:00
Daniel Erat b1ff0bff7f android: wip: add DirectoryEntry class 2011-03-15 21:46:25 -07:00
Daniel Erat 5b1461747d android: move some methods around in BrowseActivity 2011-03-15 21:21:02 -07:00
Daniel Erat 23201b97a5 Merge remote branch 'origin/master' into download
Conflicts:
	clients/android/src/org/camlistore/BrowseActivity.java
	clients/android/src/org/camlistore/DownloadService.java
2011-03-15 20:48:02 -07:00
Daniel Erat 47cd707d61 android: use cached blobs 2011-03-15 20:36:08 -07:00
Daniel Erat cd53b3d4a0 android: make DownloadService check for searches itself 2011-03-15 07:58:20 -07:00
Daniel Erat 509bd14bf5 android: add custom browse row layout 2011-03-15 07:11:51 -07:00
Daniel Erat 59775de756 android: refactor download listeners 2011-03-13 22:15:11 -07:00
Daniel Erat c7b9393699 android: browsing support 2011-03-13 20:30:35 -07:00
Daniel Erat 43f113183c rename clients/android/uploader to clients/android
also change package from com.danga.camli to org.camlistore
2011-03-13 13:09:56 -07:00
Brad Fitzpatrick 73587e6085 Rename the blobserver 'preupload' method to 'stat'
This is prep for more additions to stat.
2011-02-08 08:24:16 -08:00
Brad Fitzpatrick c4c04e7550 Add Android client to build.pl 2011-02-03 17:40:53 -08:00
Amir Mohammad Saied ecb1fb0a8e android: Moving menu items titles into the strings resource, and setting icons for them 2011-02-01 12:28:29 -08:00
Amir Mohammad Saied 759700e963 android: Cosmetics, moving all text into string resources 2011-02-01 12:27:55 -08:00
Brad Fitzpatrick 8673270a76 Slap on copyright headers; java + aidl. 2011-01-27 23:10:13 -08:00
Brad Fitzpatrick 162575e221 Remove Base64.NO_PADDING. Was necessary. 2010-12-21 18:12:53 -08:00
Brad Fitzpatrick f5a72c68d3 Don't spin. 2010-12-21 17:25:21 -08:00
Brad Fitzpatrick 3307e5c15f Enable StrictMode for Android uploader. 2010-12-21 16:05:20 -08:00
Brad Fitzpatrick 20e838b0be Android uploader: work on sha1 caching speed, thread wakelock bugs, etc 2010-12-21 15:28:36 -08:00
Brad Fitzpatrick 59e07efc7f Android uploader: clean up prefs and start/stopping service 2010-12-20 22:20:44 -08:00
Brad Fitzpatrick 4f41021d30 Android upload: respect AUTO-on-POWER setting, stop service in more places 2010-12-20 21:31:10 -08:00
Brad Fitzpatrick 052ba3446b Android client: do Authorization pre-emptively; don't double all HTTP requests
Stupid painful Apache HttpClient.

This also bumps minimal SDK version to 8 (Froyo) instead of 4 (Donut) because I'm
lazy and wanted to use the android.util.Base64 in Froyo.  Should fix that later.
2010-12-20 19:27:22 -08:00
Brad Fitzpatrick dfc058a4c6 Android uploader: send Content-Type and redundant filename parameter. 2010-12-20 18:51:38 -08:00
Brad Fitzpatrick 2567346b70 Extra debugging 2010-11-28 14:51:18 -08:00
Brad Fitzpatrick 98d97c45e8 Send content lengths. 2010-10-03 13:48:42 -07:00
Brad Fitzpatrick e360dbee7c sha1 caching 2010-08-01 21:23:43 -07:00
Brad Fitzpatrick 7415c59235 auto-upload on power 2010-08-01 20:39:34 -07:00
Brad Fitzpatrick b3f186680b add MyTracks directories 2010-08-01 20:26:19 -07:00
Brad Fitzpatrick 60efbf15df upload all 2010-08-01 20:22:19 -07:00
Brad Fitzpatrick 8c65f36662 Merge branch 'master' of danga.com:camlistore 2010-08-01 17:25:19 -07:00
Brad Fitzpatrick 7c22a659fa Merge branch 'master' of danga.com:camlistore 2010-08-01 17:24:40 -07:00
Brad Fitzpatrick 660d7de764 Add an Upload All button. 2010-08-01 17:21:28 -07:00
Brad Fitzpatrick d4566398d6 move some stuff out of try block 2010-08-01 17:20:35 -07:00
Brad Fitzpatrick 078760fed5 use startService() instead of queue in the activity. 2010-08-01 17:17:23 -07:00
Brad Fitzpatrick f127b622b0 Fix Service lifecycle issue & some crashes. 2010-07-26 10:45:05 -07:00