Commit graph

6539 commits

Author SHA1 Message Date
YuviPanda
da723d05ed Properly set uploader service as foreground so it isn't killed
Commit sitting in a corner of the road near SICSR in a temple
2012-11-04 15:53:48 +05:30
YuviPanda
88cb714b02 Add date for {{Information}} template according to EXIF data 2012-11-03 15:24:56 +05:30
YuviPanda
b3f8bf815e Add appropriate info and licensing templates 2012-11-03 04:08:11 +05:30
YuviPanda
f8c9dba049 Always flip the first character of username to be uppercase 2012-11-03 04:07:41 +05:30
YuviPanda
b939ec2137 Actually add updated java-mwapi 2012-11-03 03:54:14 +05:30
YuviPanda
3857a18cf2 Keep state about currently selected account in application 2012-11-03 03:54:03 +05:30
YuviPanda
11685e5ec1 (Bug 41703) Validate user tokens & re-login if necessary
Now we send out a request before every upload to check if
the user is logged in. If not, we re-login.

Need to study this more - this adds a little bit of extra latency
to every upload. But if the upload fails because of a login failure,
it will mean we'll have to re-upload the entire thing. Choices.

Also added a debug method to convert XML object to a String. Was
amazed at the power of Java being able to make such a complex task
accomplishable by a single line </s>
2012-11-02 23:22:29 +05:30
YuviPanda
496413da22 Rotate images appropriately in preview
Fixes #3
2012-10-27 05:56:00 +05:30
YuviPanda
eb8edb2f06 More accurate feedback about current status of upload! 2012-10-26 02:44:35 +05:30
YuviPanda
034fde1007 Display new notification when upload is complete
Full fix for issue #4
2012-10-26 00:02:31 +05:30
YuviPanda
111b618b2f New icons from Shankar
Spacing seems a little off, however
2012-10-25 23:41:13 +05:30
YuviPanda
52b16d298e Handle case when Authentication fails 2012-10-25 23:37:29 +05:30
YuviPanda
b85cc9c0e5 Change Activity Titles to appropriate names
Fixes #10
2012-10-17 21:29:58 +05:30
YuviPanda
388eed5aee Fix bug causing Login to hang when called from another AsyncTask 2012-10-17 21:09:04 +05:30
YuviPanda
76fc431532 Properly retreive account from AccountManager for auth 2012-10-17 17:53:30 +05:30
YuviPanda
e3a2384956 Multiple upload notifications work!
And they are no longer ongoing! Fixes #5 and #6
2012-10-15 21:44:50 +05:30
YuviPanda
eacb733dd5 Update username field to not show suggestions
Also fixes #2
2012-10-15 15:09:56 +05:30
YuviPanda
247d8a9224 Dismiss progress dialog when login fails
Fixes #1
2012-10-15 15:03:45 +05:30
YuviPanda
802e6aa9ed Added Commons AccountManager (Authentication Provider!)
Also updated version of java-mwapi to support cookie based auth
2012-10-15 00:42:13 +05:30
YuviPanda
d59b1700c8 Update progressbar less often 2012-10-14 15:43:53 +05:30
YuviPanda
6b40125982 Use much faster way of reading file length 2012-10-14 15:36:59 +05:30
YuviPanda
018c565f3b Upload progressbar works properly! 2012-10-14 15:30:33 +05:30
YuviPanda
887d5e7894 Show Toast at more appropriate place 2012-10-14 15:05:05 +05:30
YuviPanda
c3aaeb0d59 Progress reported a lot more granularly!
Updated version of java-mwapi used
2012-10-14 15:00:45 +05:30
YuviPanda
9175eaed95 Upload properly from the background. Push out notification
Also update java-mwapi to support progress callbacks
2012-10-14 14:32:32 +05:30
YuviPanda
5beb650063 Upload files in the background, untied to any Activity! 2012-10-11 19:54:59 +05:30
YuviPanda
30021b26d6 Minor style adjustments 2012-10-08 00:16:59 +05:30
YuviPanda
883f12fe63 Switched to Holo Light theme 2012-10-07 17:51:44 +05:30
Isaac John Wesley
309d4f7726 Added icons & layout fixes 2012-10-07 17:48:33 +05:30
YuviPanda
6e60e27f9e Added minimal notifications for upload & completion 2012-10-07 17:48:05 +05:30
YuviPanda
1b512f1e83 Updated to proper Android version 2012-10-07 15:20:12 +05:30
Isaac John Wesley
297d7226d6 Translucent Theme for Actionbar
Conflicts:

	src/org/wikimedia/commons/CommonsApplication.java
2012-10-07 15:00:50 +05:30
YuviPanda
650095c64f Add clarifying comment 2012-10-07 12:42:01 +05:30
YuviPanda
ee6515b4ad Fix bug causing larger image sizes to not load 2012-10-07 12:33:06 +05:30
YuviPanda
d7ad63ad38 Make uploads work with WMF wikis
They use HTTP/1.0, so no HTTP Chunked Transfer. Took me a fucklong
to actually find that out - almost 5 hours as I chased wrong leads,
looked for bugs in the HTTP libs, battled poor network, etc. But
was relatively easy to spot once I started logging HTTP requests.

Now, if only Java had a decent documentation browser...
2012-10-07 01:26:20 +05:30
YuviPanda
c5fd1e8fd1 Delete all Launcher Activities 2012-10-06 18:41:57 +05:30
YuviPanda
43d0f6a404 Add proper login flow 2012-10-06 18:37:44 +05:30
YuviPanda
2391cfbc1b Minor corrections to Spacing 2012-10-06 12:12:23 +05:30
YuviPanda
6ae5282f8a Initial commit 2012-10-06 11:50:20 +05:30