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

[Android] App crashes after phone language change

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.5.0
    • 3.7.0
    • cordova-android
    • 4.2.2 (Jelly-Bean)
      4.4.2 (KitKat)

    Description

      After switching device language on android, the app will fails to reload scenario:

      1. Create new app
      2. open it and exit with the home button
      3.Switch device language to or any other
      4. Resume the app

      Expected result :
      the app should run
      Actual result:
      app crashes on first load

      Log:

      07-28 16:24:10.018: D/CordovaActivity(25402): CordovaActivity.onDestroy()
      07-28 16:24:10.028: D/CordovaWebView(25402): >>> loadUrlNow()
      07-28 16:24:10.038: I/CordovaLog(25402): Changing log level to DEBUG(3)
      07-28 16:24:10.038: I/CordovaLog(25402): Found start page location: cdvtests/index.html
      07-28 16:24:10.038: D/CordovaActivity(25402): CordovaActivity.onCreate()
      07-28 16:24:10.048: D/CordovaActivity(25402): CordovaActivity.init()
      07-28 16:24:10.058: D/CordovaWebView(25402): >>> loadUrl(file:///android_asset/www/cdvtests/index.html)
      07-28 16:24:10.068: D/CordovaWebView(25402): >>> loadUrlNow()
      07-28 16:24:10.068: I/CordovaLog(25402): Found start page location: cdvtests/index.html
      07-28 16:24:10.068: D/CordovaActivity(25402): Resuming the App
      07-28 16:24:10.068: D/CordovaActivity(25402): CB-3064: The errorUrl is null
      07-28 16:24:10.078: D/CordovaWebViewClient(25402): onPageStarted(about:blank)
      07-28 16:24:10.078: D/CordovaActivity(25402): onMessage(onPageStarted,about:blank)
      07-28 16:24:10.078: D/CordovaWebViewClient(25402): onPageFinished(about:blank)
      07-28 16:24:10.078: D/CordovaActivity(25402): onMessage(onPageFinished,about:blank)
      07-28 16:24:10.078: D/CordovaActivity(25402): onMessage(exit,null)
      07-28 16:24:10.088: D/CordovaWebViewClient(25402): onPageStarted(file:///android_asset/www/cdvtests/index.html)
      07-28 16:24:10.088: D/CordovaActivity(25402): onMessage(onPageStarted,file:///android_asset/www/cdvtests/index.html)
      07-28 16:24:10.108: D/CordovaActivity(25402): Paused the application!
      07-28 16:24:10.108: D/CordovaWebView(25402): Handle the pause
      07-28 16:24:10.148: D/CordovaActivity(25402): CordovaActivity.onDestroy()
      07-28 16:24:10.148: D/CordovaWebView(25402): >>> loadUrlNow()
      07-28 16:24:10.158: D/CordovaWebViewClient(25402): onPageFinished(file:///android_asset/www/cdvtests/index.html)
      07-28 16:24:10.158: D/CordovaActivity(25402): onMessage(onPageFinished,file:///android_asset/www/cdvtests/index.html)
      07-28 16:24:10.168: D/CordovaWebViewClient(25402): onPageStarted(about:blank)
      07-28 16:24:10.168: D/CordovaActivity(25402): onMessage(onPageStarted,about:blank)
      07-28 16:24:10.188: D/CordovaWebViewClient(25402): onPageFinished(about:blank)
      07-28 16:24:10.188: D/CordovaActivity(25402): onMessage(onPageFinished,about:blank)
      07-28 16:24:10.188: D/CordovaActivity(25402): onMessage(exit,null)
      07-28 16:24:12.168: D/CordovaActivity(25402): onMessage(spinner,stop)
      07-28 16:24:12.188: D/CordovaActivity(25402): onMessage(spinner,stop)

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              martin.c.glez.glez Martin Gonzalez
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: