Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-527

The app should be displayed in the "Open with" list when a user try to share a file

XMLWordPrintable

    • MOODLE_14_STABLE

      And once we receive the file, we should upload it directly to the user private file area

      For iOs:

      We need to specify with type of files supports the app

      https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html#//apple_ref/doc/uid/TP40010411-SW1

      It wasn't possible to do that in Phonegap:
      https://groups.google.com/forum/#!topic/phonegap/_ws_dSzyCV4

      But starting Phonegap Build 3.1 it's possible:

      https://github.com/phonegap/build/issues/213#issuecomment-31330060

      See:
      http://phonegap.com/blog/2014/01/30/customizing-your-android-manifest-and-ios-property-list-on-phonegap-build/

      An the example for XML files:

      <gap:config-file platform="ios" parent="CFBundleDocumentTypes">
      <array>
      <dict>
      <key>CFBundleTypeName</key>
      <string>XML File</string>
      <key>CFBundleTypeRole</key>
      <string>Editor</string>
      <key>LSItemContentTypes</key>
      <array>
      <string>public.xml</string>
      </array>
      </dict>
      </array>
      </gap:config-file>

      For Android:

      Same as above, as custom preferences in Android Manifest
      http://docs.build.phonegap.com/en_US/3.3.0/configuring_config_file_element.md.html#Config%20File%20Elements

      Example for youtube:
      http://stackoverflow.com/questions/525063/android-respond-to-url-in-intent

      We need the WebIntent plugin, that currently we are using

        1. iphone.png
          iphone.png
          190 kB
        2. Open with Android.png
          Open with Android.png
          201 kB
        3. Open with Android embeds.png
          Open with Android embeds.png
          1.11 MB
        4. Screenshot_2014-06-17-22-08-36.png
          Screenshot_2014-06-17-22-08-36.png
          126 kB
        5. Screenshot_2014-06-17-22-09-21.png
          Screenshot_2014-06-17-22-09-21.png
          134 kB
        6. Share Android.png
          Share Android.png
          208 kB
        7. Upload 1 site.png
          Upload 1 site.png
          141 kB
        8. Uploaded 1 site.png
          Uploaded 1 site.png
          131 kB
        9. Uploaded several sites.png
          Uploaded several sites.png
          41 kB
        10. Upload several sites.png
          Upload several sites.png
          239 kB

            dpalou Dani Palou
            jleyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.