Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Needs more info
    • Affects Version/s: Appcelerator Studio 4.3.0
    • Component/s: Titanium SDK & CLI
    • Labels:
      None
    • Environment:

      Description

      Android application not working.

      <Widget id="drawer" src="kr.yostudio.drawer" platform="android">
      <View id="menuWrap" role="leftView">
      <Require id="leftMenu" src="win_leftMenu"></Require>
      </View>
      <Window id="win_drawer" platform="android" role="centerWindow" >
      <ActionBar onHomeIconItemSelected="onMenuButtonClick" title="L K Nakashe Consultants" displayHomeAsUp="true" ></ActionBar>
      <Menu id="menu" platform="android">
      <MenuItem title="Call us" icon="/images/drawer_contact.png" onClick="onCallUsClick" showAsAction="Ti.Android.SHOW_AS_ACTION_IF_ROOM"/>
      </Menu>
      </Window>
      </Widget>

      TableViewRowProxy: (main) [6180,6180] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [5,6185] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [11,6196] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [10,6206] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [9,6215] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [10,6225] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [15,6240] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [9,6249] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [9,6258] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [10,6268] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [8,6276] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [14,6290] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [9,6299] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [9,6308] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [4,6312] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [6,6318] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [7,6325] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [7,6332] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : TableViewRowProxy: (main) [6,6338] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead
      [WARN] : W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference
      [WARN] : W/System.err: at org.appcelerator.titanium.proxy.ActionBarProxy.<init>(ActionBarProxy.java:58)
      [WARN] : W/System.err: at org.appcelerator.titanium.proxy.ActivityProxy.getActionBar(ActivityProxy.java:258)
      [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)
      [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)
      [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)
      [WARN] : W/System.err: at ti.modules.titanium.TitaniumModule$Timer.run(TitaniumModule.java:147)
      [WARN] : W/System.err: at android.os.Handler.handleCallback(Handler.java:746)
      [WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
      [WARN] : W/System.err: at android.os.Looper.loop(Looper.java:148)
      [WARN] : W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5443)
      [WARN] : W/System.err: at java.lang.reflect.Method.invoke(Native Method)
      [WARN] : W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
      [WARN] : W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
      [ERROR] : TiExceptionHandler: (main) [1143,7481] ----- Titanium Javascript Runtime Error -----
      [ERROR] : TiExceptionHandler: (main) [0,7481] - In ti:/titanium.js:226,24

      [ERROR] : TiExceptionHandler: (main) [0,7481] - Message: Uncaught Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference
      [ERROR] : TiExceptionHandler: (main) [0,7481] - Source: serialized[k] = this[k];
      [ERROR] : V8Exception: Exception occurred at ti:/titanium.js:226: Uncaught Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference
      [ERROR] : V8Exception: Attempt to invoke virtual method 'void
      android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference

        Attachments

        1. mytheme.xml
          1 kB
        2. no_actionbar.xml
          0.2 kB
        3. Screenshot_20180713-162427.png
          Screenshot_20180713-162427.png
          43 kB
        4. styles_demo.xml
          4 kB
        5. widget.js
          11 kB

          Issue Links

            Activity

              People

              • Assignee:
                shossain Shak Hossain (Inactive)
                Reporter:
                rohit rohit@ccomsys.net
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration