Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:36:53+00:00 2026-06-12T14:36:53+00:00

I am using titanium appecelerator to build an app in both ios and android.

  • 0

I am using titanium appecelerator to build an app in both ios and android.

I use the following code to create a tab group and add a tab to it.

  var localTabGroup = Ti.UI.createTabGroup();

  var planTab = Ti.UI.createTab({
            title : NYC.Common.StringConstant.TAB_TITLE_PLAN,
            icon : NYC.Common.ResourcePathConstant.IMG_TAB_PLAN,
            window : planTabWin

        });

   localTabGroup.open();

And call the following function to create a window and add it to the tab

 addWindowToTabGroup : function(window) {

        tabGroup.activeTab.open(window, {
            animated : true
        });
    },

Now, I often have to remove window from the stack of the tab ( eg: on android back button or ios navigation bar back)

Till now, I use window.close() to remove the window from the stack . But, it always shows warnings like.

[ERROR][TiBaseActivity(  378)] (main) [3320,4640528] Layout cleanup.

[WARN][InputManagerService(   62)] Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@406e4258

I was just wondering if I am following the correct approach? Or is there a better way to remove a window from the tab?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:36:54+00:00Added an answer on June 12, 2026 at 2:36 pm

    Tabs behave a lot differently on iOS and Android, On Android, the tab does not maintain a stack of windows. Calling open opens a new, heavyweight window, which by default covers the tab group entirely.This is very different from iOS, but it is for Android applications. Users always use the Back button to close the window and return to the tab group.

    This may be happening because you are trying to remove the window even though natively Android already removes it. Check out the Android Implementation Notes of the docs here

    To completely eliminate this problem, I would just open up a modal window without using the TabGroup, this would be more cross platform:

    addWindowToTabGroup : function(window) {
    
        window.open({
            modal : true,
            animated : true
        });
    }
    

    This will open a modal window which behaves the same on both platforms, and can be handled easily by the native back button functionality.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im doing some research to build an iOS and Android app using titanium appcelerator.
I am using Appcelerator Titanium for an Android app and the code below generates
I have developed an Android app using Appcelerator Titanium. This app will create a
I am trying to use Appcelerator Titanium to build a mobile app. This app
Using Titanium Appcelerator I am trying to dynamically create elements and add event listeners
I'm using Titanium to develop an Android/Ipad app. I can't find the exact dp
I am using the following code in Titanium Appcelerator to connect with remote Host:
Is it possible to create a app using Titanium Desktop to transfer files between
I am writing my app in JavaScript using Appcelerator's Titanium IDE. I've been working
Am looking into developing an iPhone native app using Titanium Developer Since this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.