11 Replies Latest reply on Jun 11, 2014 10:24 AM by Michael Toews

    RhoMobile 4.1 minimal android version?

    Ruben Ruben

      Hi,

       

      I've been trying to get my Rhomobile 4.1 app to run on older Android 2.x and 3.x devices without success. They will crash directly after starting, while they worked on with Rhodes 4.0

       

      Also, while testing on a older Android 4.0.3 tablet, It won't show the 'options' button that usually appears on the lower bar. I'm thinking this may have something to do with the fact that Rhodes updated the native menu to use a newer Android API version, am I right?

       

      Is it still possible to maintain compatibility with older devices without having to go back to Rhodes 4.0?

       

      Ps: Also, why do apps now always hide the status bar by default? Is there a way to avoid this?

        • Re: RhoMobile 4.1 minimal android version?
          Kutir Mobility

          Ruben,

          Rho 4.1 supports Android 2+. Can you share app log, your device name and device version and so on.

           

          Visnupriya R

          Kutir Mobility

            • Re: Re: RhoMobile 4.1 minimal android version?
              Ruben Ruben

              It seems that Rhodes log is normal right to when it crashes. ADB logcat shows that the error was caused due to a NullPointerException:

               

               

              D/RhoElements(  299): <1> Logger started

               

              I/APP     (  299): I 05/30/2014 06:55:37:327 0000012b     RhoElementsProxy| onCreate -- intent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rhomobile.compasmobile/com.rhomobile.rhodes.RhodesActivity }

               

              I/APP     (  299): I 05/30/2014 06:55:37:328 0000012b     RhoElementsProxy| initializeNavigateIntentReceiver -- START

               

              I/APP     (  299): I 05/30/2014 06:55:37:329 0000012b     RhoElementsProxy| Navigate receiver not yet initialized...creating it...

               

              I/APP     (  299): I 05/30/2014 06:55:37:334 0000012b     RhoElementsProxy| Navigate receiver now registered

               

              I/APP     (  299): I 05/30/2014 06:55:37:336 0000012b     RhoElementsProxy| onCreate -- END

               

              I/APP     (  299): I 05/30/2014 06:55:37:337 0000012b LicenseRhodesListener| Creating RE License extension for Native app

               

              I/APP     (  299): I 05/30/2014 06:55:37:341 0000012b LicenseHybridExtension| License token: null

               

              I/APP     (  299): I 05/30/2014 06:55:37:342 0000012b LicenseHybridExtension| License company: null

               

              I/APP     (  299): I 05/30/2014 06:55:37:343 0000012b LicenseHybridExtension| App name: Compas Mobile

               

              I/APP     (  299): I 05/30/2014 06:55:37:448 0000012b        GoogleWebView| Initialize Google WEbView staff

               

              I/APP     (  299): I 05/30/2014 06:55:37:450 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 1

               

              I/APP     (  299): I 05/30/2014 06:55:37:450 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 2

               

              I/APP     (  299): I 05/30/2014 06:55:37:451 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 3

               

              I/APP     (  299): I 05/30/2014 06:55:37:451 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 4

               

              I/APP     (  299): I 05/30/2014 06:55:37:452 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 5

               

              I/APP     (  299): I 05/30/2014 06:55:37:453 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 6

               

              I/APP     (  299): I 05/30/2014 06:55:37:453 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 7

               

              I/APP     (  299): I 05/30/2014 06:55:37:454 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 8

               

              I/APP     (  299): I 05/30/2014 06:55:37:454 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 9

               

              I/APP     (  299): I 05/30/2014 06:55:37:455 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderBase : 10

               

              I/APP     (  299): I 05/30/2014 06:55:37:459 0000012b     OsVersionManager| refreshFeature: interface com.rhomobile.rhodes.webview.IWebSettingsProvider

               

              I/APP     (  299): I 05/30/2014 06:55:37:462 0000012b     OsVersionManager| Set class com.rhomobile.rhodes.webview.WebSettingsProviderBase

               

              I/APP     (  299): I 05/30/2014 06:55:37:473 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclair : 5

               

              I/APP     (  299): I 05/30/2014 06:55:37:473 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclair : 6

               

              I/APP     (  299): I 05/30/2014 06:55:37:475 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclair : 7

               

              I/APP     (  299): I 05/30/2014 06:55:37:476 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclair : 8

               

              I/APP     (  299): I 05/30/2014 06:55:37:478 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclair : 9

               

              I/APP     (  299): I 05/30/2014 06:55:37:485 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclair : 10

               

              I/APP     (  299): I 05/30/2014 06:55:37:485 0000012b     OsVersionManager| refreshFeature: interface com.rhomobile.rhodes.webview.IWebSettingsProvider

               

              I/APP     (  299): I 05/30/2014 06:55:37:487 0000012b     OsVersionManager| Set class com.rhomobile.rhodes.webview.WebSettingsProviderEclair

               

              I/APP     (  299): I 05/30/2014 06:55:37:497 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclairMR1 : 7

               

              I/APP     (  299): I 05/30/2014 06:55:37:497 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclairMR1 : 8

               

              I/APP     (  299): I 05/30/2014 06:55:37:499 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclairMR1 : 9

               

              I/APP     (  299): I 05/30/2014 06:55:37:508 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderEclairMR1 : 10

               

              I/APP     (  299): I 05/30/2014 06:55:37:509 0000012b     OsVersionManager| refreshFeature: interface com.rhomobile.rhodes.webview.IWebSettingsProvider

               

              I/APP     (  299): I 05/30/2014 06:55:37:510 0000012b     OsVersionManager| Set class com.rhomobile.rhodes.webview.WebSettingsProviderEclairMR1

               

              I/APP     (  299): I 05/30/2014 06:55:37:513 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderFroyo : 8

               

              I/APP     (  299): I 05/30/2014 06:55:37:516 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderFroyo : 9

               

              I/APP     (  299): I 05/30/2014 06:55:37:519 0000012b     OsVersionManager| com.rhomobile.rhodes.webview.WebSettingsProviderFroyo : 10

               

              I/APP     (  299): I 05/30/2014 06:55:37:521 0000012b     OsVersionManager| refreshFeature: interface com.rhomobile.rhodes.webview.IWebSettingsProvider

               

              I/APP     (  299): I 05/30/2014 06:55:37:524 0000012b     OsVersionManager| Set class com.rhomobile.rhodes.webview.WebSettingsProviderFroyo

               

              I/APP     (  299): I 05/30/2014 06:55:37:527 0000012b     OsVersionManager| refreshFeature: interface com.rhomobile.rhodes.webview.IWebSettingsProvider

               

              I/APP     (  299): I 05/30/2014 06:55:37:535 0000012b     OsVersionManager| Set class com.rhomobile.rhodes.webview.WebSettingsProviderFroyo

               

              I/APP     (  299): I 05/30/2014 06:55:37:553 0000012b        GoogleWebView| Adding new JS interface: generic

               

              I/APP     (  299): I 05/30/2014 06:55:37:554 0000012b        GoogleWebView| Adding new JS interface: metaReceiver

               

              I/APP     (  299): I 05/30/2014 06:55:37:557 0000012b    RhodesApplication| New UiState: MainActivityCreated

               

              I/APP     (  299): I 05/30/2014 06:55:37:558 0000012b         BaseActivity| activityStarted (1): sActivitiesActive=0

               

              I/APP     (  299): I 05/30/2014 06:55:37:559 0000012b         BaseActivity| first activity started

               

              I/APP     (  299): I 05/30/2014 06:55:37:563 0000012b            RhodesApp| callAppActiveCallback

               

              I/APP     (  299): I 05/30/2014 06:55:37:569 0000012b         AppCallbacks| addCommand: APP-ACTIVATED

               

              I/APP     (  299): I 05/30/2014 06:55:37:570 00000133         AppCallbacks| APP-ACTIVATED is received ++++++++++++++++++++++++++++

               

              I/APP     (  299): I 05/30/2014 06:55:37:571 00000133         AppCallbacks| Received command APP-ACTIVATED which is greater than expected (UI-CREATED) - postpone it

               

              I/APP     (  299): I 05/30/2014 06:55:37:572 00000133         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...

               

              I/APP     (  299): I 05/30/2014 06:55:37:575 0000012b       RhoElementsExt| onAppActivate: true

               

              I/APP     (  299): I 05/30/2014 06:55:37:577 0000012b       RhoElementsExt| shared_runtime: false

               

              I/APP     (  299): I 05/30/2014 06:55:37:580 0000012b       RhoElementsExt| isFirstTime: true

               

              I/APP     (  299): I 05/30/2014 06:55:37:586 0000012b       RhoElementsExt| isFromIntent: false

               

              I/APP     (  299): I 05/30/2014 06:55:37:588 0000012b       RhoElementsExt| Motorola plugins processing: ALL

               

              I/APP     (  299): I 05/30/2014 06:55:37:598 0000012b    RhodesApplication| New AppState: AppActivated

               

              I/APP     (  299): I 05/30/2014 06:55:37:598 0000012b         BaseActivity| activityStarted (2): sActivitiesActive=1

               

              I/APP     (  299): I 05/30/2014 06:55:37:601 0000012b    RhodesApplication| New UiState: MainActivityStarted

               

              I/APP     (  299): I 05/30/2014 06:55:37:603 0000012b     RhoElementsProxy| onStart -- START

               

              D/AndroidRuntime(  299): Shutting down VM

               

              W/dalvikvm(  299): threadid=1: thread exiting with uncaught exception (group=0x40015560)

               

              E/AndroidRuntime(  299): FATAL EXCEPTION: main

               

              E/AndroidRuntime(  299): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rhomobile.compasmobile/com.rhomobile.rhodes.RhodesActivity}: java.lang.NullPointerException

               

              E/AndroidRuntime(  299):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)

               

              E/AndroidRuntime(  299):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)

               

              E/AndroidRuntime(  299):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)

               

              E/AndroidRuntime(  299):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)

               

              E/AndroidRuntime(  299):     at android.os.Handler.dispatchMessage(Handler.java:99)

               

              E/AndroidRuntime(  299):     at android.os.Looper.loop(Looper.java:123)

               

              E/AndroidRuntime(  299):     at android.app.ActivityThread.main(ActivityThread.java:3683)

               

              E/AndroidRuntime(  299):     at java.lang.reflect.Method.invokeNative(Native Method)

               

              E/AndroidRuntime(  299):     at java.lang.reflect.Method.invoke(Method.java:507)

               

              E/AndroidRuntime(  299):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

               

              E/AndroidRuntime(  299):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)

               

              E/AndroidRuntime(  299):     at dalvik.system.NativeStart.main(Native Method)

               

              E/AndroidRuntime(  299): Caused by: java.lang.NullPointerException

               

              E/AndroidRuntime(  299):     at com.motorolasolutions.rhoelements.ElementsCore.configureWebKit(ElementsCore.java:435)

               

              E/AndroidRuntime(  299):     at com.rhoelementsext.RhoElementsProxy.onStart(RhoElementsProxy.java:67)

               

              E/AndroidRuntime(  299):     at com.rhomobile.rhodes.extmanager.RhoExtManagerImpl.onStartActivity(RhoExtManagerImpl.java:793)

               

              E/AndroidRuntime(  299):     at com.rhomobile.rhodes.RhodesActivity.onStart(RhodesActivity.java:263)

               

              E/AndroidRuntime(  299):     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)

               

              E/AndroidRuntime(  299):     at android.app.Activity.performStart(Activity.java:3791)

               

              E/AndroidRuntime(  299):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1620)

               

              E/AndroidRuntime(  299):     ... 11 more

               

              W/ActivityManager(   61):   Force finishing activity com.rhomobile.compasmobile/com.rhomobile.rhodes.RhodesActivity

               

              W/ActivityManager(   61): Activity pause timeout for HistoryRecord{406fa3f8 com.rhomobile.compasmobile/com.rhomobile.rhodes.RhodesActivity}

               

              W/ActivityManager(   61): Activity destroy timeout for HistoryRecord{406fa3f8 com.rhomobile.compasmobile/com.rhomobile.rhodes.RhodesActivity}

               

              W/ActivityManager(   61): Timeout executing service: ServiceRecord{406b8e78 com.rhomobile.compasmobile/com.rhomobile.rhodes.RhodesService}

               

              I/ActivityManager(   61): Crashing app skipping ANR: ProcessRecord{406d4770 299:com.rhomobile.compasmobile/10034} Executing service com.rhomobile.compasmobile/com.rhomobile.rhodes.RhodesService

               

              I/APP     (  299): I 05/30/2014 06:56:26:900 00000135                 Sync| addCommand: SyncAll

               

              I/APP     (  299): I 05/30/2014 06:56:26:907 00000135                 Sync| ThreadQueue blocked for 60 seconds...