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

Android: tabbed applications fail (crash) in honeycomb

    Details

      Description

      {html}<div><p><strong>app.js fail case</strong>:</p>
      <pre>
      <code class="javascript">Titanium.UI.setBackgroundColor('#000');
      var tabGroup = Titanium.UI.createTabGroup();
      var win1 = Titanium.UI.createWindow({
      title:'Tab 1',
      backgroundColor:'#fff'
      });
      var tab1 = Titanium.UI.createTab({
      title:'Tab 1',
      window:win1
      });

      tabGroup.addTab(tab1);
      tabGroup.open();</code>
      </pre>
      <p>Fail trace:</p>
      <pre>
      <code>E/AndroidRuntime( 420): FATAL EXCEPTION: main
      E/AndroidRuntime( 420): android.content.res.Resources$NotFoundException: Resource ID #0x0
      E/AndroidRuntime( 420): at android.content.res.Resources.getValue(Resources.java:1014)
      E/AndroidRuntime( 420): at android.content.res.Resources.loadXmlResourceParser(Resources.java:2039)
      E/AndroidRuntime( 420): at android.content.res.Resources.getLayout(Resources.java:853)
      E/AndroidRuntime( 420): at android.view.LayoutInflater.inflate(LayoutInflater.java:389)
      E/AndroidRuntime( 420): at android.widget.TabHost$LabelIndicatorStrategy.createIndicatorView(TabHost.java:534)
      E/AndroidRuntime( 420): at android.widget.TabHost.addTab(TabHost.java:226)
      E/AndroidRuntime( 420): at ti.modules.titanium.ui.widget.TiUITabGroup.addTab(TiUITabGroup.java:91)
      E/AndroidRuntime( 420): at ti.modules.titanium.ui.TabGroupProxy.addTabToGroup(TabGroupProxy.java:183)</code>
      </pre></div>{html}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                billdawson Bill Dawson
                Reporter:
                billdawson Bill Dawson
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code