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

Specify Android's targetSdkVersion in config.xml

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.3.0
    • Component/s: Android
    • Labels:
    • Testing Instructions:
      Hide
      1. In your local environment, run the following commands:

        cordova platform remove android
        cordova platform add android
        

        Check that no error is thrown.

      2. Open the file platforms/android/AndroidManifest.xml and check that it has the following line:
        <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />
      Show
      In your local environment, run the following commands: cordova platform remove android cordova platform add android Check that no error is thrown. Open the file platforms/android/AndroidManifest.xml  and check that it has the following line: <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19" />
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Sprint:
      Moodle Mobile 3.3.0

      Description

      Right now we don't specify the targetSdkVersion for Android apps. In API 24 or higher the app won't be able to open external files, so we should specify a lesser API version.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Pau Ferrer
            Participants:
            Component watchers:
            Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              26/May/17