Page MenuHomePhabricator

Allow sharing the offline compilation/s without internet access
Closed, ResolvedPublic

Description

User story
As a user with limited access to internet connectivity, I want to get files from a source without needing to go online.

Proposed solution
Add capability to share downloaded files via 'Share' sheet, an overflow menu option for each file listed in the compilations screen.

A06iv - share file option.png (1×720 px, 118 KB)

See Zeplin: https://zpl.io/2qg0BA

  • QA steps**

A pre-requisite for this test is that one or more article packs have been added to the users Offline Library.

  1. Go offline
  2. Open the app to the Offline Library and tap on the overflow of a downloaded article pack
  3. Choose the "Share" option in the overflow menu
  4. It is expected that the Android OS Share sheet should appear including options to share on Bluetooth and/or Android Beam (if these are available options for that device).
  5. It is expected that the Android OS Share that user is able to share to another device via Android Beam and and Bluetooth.

Event Timeline

Change 373316 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] Implement sharing and deleting of compilations.

https://gerrit.wikimedia.org/r/373316

Change 373316 merged by jenkins-bot:
[apps/android/wikipedia@master] Implement sharing and deleting of compilations.

https://gerrit.wikimedia.org/r/373316

hi @Dbrant - the share sheet does not appear to show all share options available, notably missing the Bluetooth option.

Share options for article packs in Offline Library
image.png (1×1 px, 203 KB)
Share option for files in Adobe Acrobat
image.png (1×1 px, 269 KB)
Share options for files in Atro File Manager
astro-MainActivity-08252017134517.png (1×1 px, 187 KB)

@RHo Will do! However, some things to keep in mind about Bluetooth and NFC:

  • The data transfer speed over Bluetooth is roughly 150KB/s, and for NFC it's 50KB/s. For article packs that are in the multi-gigabyte range, this will be pretty painfully slow, i.e. on the order of many hours. In fact, it looks like the system Bluetooth app crashes when trying to send a file over 4GB (it was never designed for such a thing).

@Dbrant - yah fair enough, I think it will good to have the bluetooth option though, since this seems to be more familiar way to sharing than Android Beam for New Readers who tend to have older devices.