Commons app mirror
Find a file
Brion Vibber 5be2d939ea "Download" menu button on image detail page.
Saves original file into the SD card "Downloads" directory via
Android's DownloadManager service.

On Gingerbread the notification vanishes after downloda, but we
force the gallery to reindex the downloads area so you can still
manually bump over to Gallery.

On ICS/JB the notification hangs around and can be used to open
the saved file directly.

Note that on Gingerbread we have to download over HTTP because
DownloadManager didn't support HTTPS.

Included copy of stock 'upload' icon, flipped it for 'download'.
2013-05-16 13:13:34 -07:00
commons "Download" menu button on image detail page. 2013-05-16 13:13:34 -07:00
CHANGELOG.md Update version and CHANGELOG for 1.0beta8 2013-04-26 10:58:07 -07:00
commons-parent.iml Mavenized (almost) everything - Transcode feature removed 2013-01-25 03:04:21 +05:30
COPYING Relicense to Apache License 2013-04-23 21:16:43 +05:30
CREDITS update license in CREDITS file 2013-05-14 10:27:56 -07:00
pom.xml Remove unused androlog dependency 2013-03-22 14:42:44 +05:30
README.md Fix typos in instructions and link 2013-05-02 12:08:08 -05:00
RELEASE-CHECKLIST.md Update RELEASE-CHECKLIST 2013-04-27 00:58:19 +05:30
upload-to-commons.patch Added patch file that can be used to make app upload to commons 2013-04-26 22:55:20 +05:30

The Wikimedia Commons Android App

Build Requirements

  1. Android SDK (Level 15)
  2. Maven

Build Instructions

  1. Set the environment variable ANDROID_HOME to be the path to your Android SDK
  2. Run mvn install to build
  3. Run mvn android:deploy to deploy to a device
  4. There is no step 4

Note: Currently uses a bunch of dependencies that are staged at yuvi.in/blog/maven. Will be migrated to either Maven Central or a Wikimedia staging server soon.

Set Up IntelliJ for Commons Android App Development

Import and Compile Commons Android App

Download IntelliJ

  1. Clone the repository.
  2. Open IntelliJ.
  3. Import Project:
    File -> Import Project
    or
    Select 'Import Project' from the Quick Start menu
  4. Navigate to the folder with the cloned repository and press 'OK'.
  5. Select 'Import Project from external model' -> 'Maven' and press 'Next'.
  6. Make sure 'Search for projects recursively' and 'Import Maven projects automatically' are checked. Select 'Next'.
  7. This section needs no modification. Select 'Next'.
  8. This section needs no modification. Select 'Next'.
  9. Make sure the 'Android SDK home path' points to the 'android-sdk' folder. If the dropdown next to 'Java SDK' is empty, hit the '+' button avobe the sidebar and select 'JDK'. Navigate to your jdk folder, select it, and hit 'OK'. Now select the newly added JDK and hit 'Next'.
  10. This section needs no modifications. Select 'Next'.
  11. Select 'Finish'.
  12. After the program opens select 'Make project' - there should be errors.
  13. Near the top of the file that is opened up, one of the offending lines should be "import android.support.v4.app.FragmentActivity;" - put your cursor on that line and hit 'alt'/'option'+'enter' to bring up the AutoFix dialog. Select the 'compatibility' option.
  14. Select 'Make project' again. It should compile successfully.

License

This software is licensed under the Apache License.

Bugs?

This software has no bugs. You can dispute this statement at bugzilla