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

  • SEARCH
  • Home
  • 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 6181605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:03:20+00:00 2026-05-24T01:03:20+00:00

i am setting custom title in my tab activity like this boolean customTitleSupported; customTitleSupported

  • 0

i am setting custom title in my tab activity like this

    boolean customTitleSupported;
    customTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
  //  customTitleSupported = false;

  //check for custom title supported feature   
    if(customTitleSupported == true) {
        customTitleBar();
    } else {
        requestWindowFeature(Window.FEATURE_LEFT_ICON);
        String title = prefManager.getTitle();
        setTitle(NAME + " " + title);
    }
    //Set contentview of activity  
    setContentView(R.layout.tabactivity);  

    if(customTitleSupported == false){
        setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, R.drawable.logo);
    }

Everything is working fine.But when i make customTitleSupported to FALSE to check if custom title support is not there in sdk then it should call normal setTitle() function.
But if i do this customTitleSupported = false;
i am getting following error

android.util.AndroidRuntimeException: You cannot combine custom titles with other title 

features

i am not clearly understanding the problem if custom title is not supported why i cannot request for other title features.If i doest not request for custom title then else part of setting icon and title works but i want to handle both conditions together.

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-05-24T01:03:22+00:00Added an answer on May 24, 2026 at 1:03 am

    You canot use other title features with FEATURE_CUSTOM_TITLE, and you cannot turn off a feature once requested: check doc

    You just have to use setFeatureInt(int featureId, int value) and provide a layout resource ID at “value”. Check this example: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/CustomTitle.html

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

Sidebar

Related Questions

I have a custom title bar requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.activities); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title); Which works basically fine.
I would like to read custom setting which i have done in ServiceConfiguration.cscfg &
So, this title probably makes me look new and like I haven't looked for
I am using a custom title view and would like to show/hide a progressbar
I am setting a custom font in my UIBarButtonItem objects using UIAppearance . This
I'm trying to use the requestWindowFeature() function to set a custom title view on
I have a custom view for my navigation bar title, which I am setting
I am setting up a custom tab where users can view and edit data.
I have a application for android 2.3.3 where I am setting some custom titles
I'm setting a custom StatusDescription in a RESTful WCF service when an exception 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.