Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25423

Android: Ti.UI.Slider on Android 4.x is not working, error introduced on SDK 6.2.x

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: Release 6.3.0
    • Component/s: Android
    • Labels:
      None

      Description

      Just create an alloy project and add Ti.UI.Slider

      var slider = Ti.UI.createSlider(

      { min: 0, max: 100, width: '100%', height: Ti.UI.SIZE, value: 0 }

      );

      $.index.add(slider);

      Run it on an emulator with Android 4.4.4

      It works on SDK 6.1.x but not on 6.2.x

      [ERROR] : TiApplication: (main) [137,137] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: android.widget.SeekBar.setSplitTrack; Titanium 6.2.0,2017/09/12 20:39,undefined
      [ERROR] : TiApplication: java.lang.NoSuchMethodError: android.widget.SeekBar.setSplitTrack
      [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.TiUISlider.processProperties(TiUISlider.java:98)
      [ERROR] : TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1222)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:507)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:485)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:523)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:507)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:485)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:695)
      [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:588)
      [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:261)
      [ERROR] : TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
      [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:564)
      [ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:684)
      [ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:21)
      [ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:5231)
      [ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
      [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
      [ERROR] : TiApplication: at android.app.ActivityThread.access$800(ActivityThread.java:135)
      [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
      [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
      [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:136)
      [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5001)
      [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method)
      [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:515)
      [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method)

        Attachments

          Activity

            People

            • Assignee:
              mchen Maggie Chen
              Reporter:
              horozco Henry Orozco
              Reviewer:
              Joshua Quick
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5899
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code