Hiding Activity Title
Home Courses Community Support
Gray Matter

First Step Towards Android: Introduction »

Understanding Activities and Intents »

Hands On With UI Designing In Android (Controls-Views,Widgets and Layouts) »

Updating... »

Hiding Activity Title

If you want to hide the title of an activity if desired (like when you want to display the status update to the user ). Then you can use the requestWindowFeature() method and pass it as the Window.FEATURE_NO_TITLE constant.

Example showing the similar is given below-

package com.example.Activities;

import android.app.Activity;

import android.os.Bundle;

import android.util.Log;

import android.view.Window;

public class MainActivity extends Activity {

String tag = “Events”;

/** Called when the activity is first created. */


public void onCreate(Bundle savedInstanceState) {


//---hides the title bar---



Log.d(tag, “In the onCreate() event”);







← Preview

Applying Themes And Styles To Activity

Next →

Dialog Window Example


Our mission is to provide highly effective and quality education via innovative solutions. Geeksdemy look forward to bridge the gap between in-demand technology and academics in order to deliver innovative, easy, interesting and affordable learning across the Globe.


  • Python
  • Game Development with Unity 3D
  • Arduino
  • PCB & Circuit Designing
  • Robotics and Embedded C
  • 8051/8052 Embedded Systems
  • QuadCopter & UAV
  • MATLAB with Robotics
  • Raspberry Pi
Learn On the Go!
Get the Android App
Get the iOS App