Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1743

Globalization.getDateNames will crash Android 2.2 applications

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: 2.2.0
    • Component/s: cordova-android
    • Labels:
      None

      Description

      The Globalization.getDateNames Java code relies on Android API level 9 (Android 2.3) methods. Specifically Calendar.getDisplayNames(). I'm adding a check in the Globalization plugin so when someone calls Globalization.getDateNames() on Android 2.2 or earlier the error callback is invoked instead of having the application crash.

        Attachments

          Activity

            People

            • Assignee:
              macdonst Simon MacDonald
              Reporter:
              macdonst Simon MacDonald
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: