# \[Android\] Please tell me how to make the title bar visible in the 'Processing App'. help me

**URL:** https://discourse.processing.org/t/android-please-tell-me-how-to-make-the-title-bar-visible-in-the-processing-app-help-me/40634
**Category:** Processing for Android
**Created:** [January 18, 2023, 4:22pm UTC](https://discourse.processing.org/t/android-please-tell-me-how-to-make-the-title-bar-visible-in-the-processing-app-help-me/40634 "2023-01-18T16:22:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)
#### Post date: [January 18, 2023, 4:22pm UTC](https://discourse.processing.org/t/android-please-tell-me-how-to-make-the-title-bar-visible-in-the-processing-app-help-me/40634/1 "2023-01-18T16:22:20Z")

</div>

Please tell me how to make the title bar visible in the ‘Processing App’.

 ![ffig](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/2/0219b1614f46710f7e5d7cff7e4ad7ad82f0a36d.jpeg)

hello.

1. Please look at the picture.
2. In the ‘Title Bar’, you can see the current time and battery information.
3. However, it cannot be checked in ‘Processing App’.
4. How to make the ‘Title Bar’ visible in the ‘Processing App’?

help me.

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [January 18, 2023, 7:34pm UTC](https://discourse.processing.org/t/android-please-tell-me-how-to-make-the-title-bar-visible-in-the-processing-app-help-me/40634/2 "2023-01-18T19:34:47Z")

</div>

Look in your manifest file. There is a line which calls for ‘noActionBar’; I tried REMMing that line out but the runtime just re-inserts it by default. In order to change this we would have to locate the source code for the editor that generates the manifest file and tell it not to add that (which I don’t know how to do). The other option is to use another editor, eg Android Studio and see if it installs the actionBar automatically; I’ve heard that it (or some other editor) does that.

 ![actionBar](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/e/1/e156759f5cd4f10c4431aab2f48d977d909dd384.png)

This would be the perfect opportunity to add your own toolbar, but I’m not sure whether you’re interested in doing that or would rather have the original. If you want to make your own, the following link describes how to do it:  
[https://developer.android.com/develop/ui/views/components/appbar](https://developer.android.com/develop/ui/views/components/appbar)

---

<div class="post-metadata">

### Author: ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)
#### Post date: [January 18, 2023, 8:13pm UTC](https://discourse.processing.org/t/android-please-tell-me-how-to-make-the-title-bar-visible-in-the-processing-app-help-me/40634/3 "2023-01-18T20:13:26Z")

</div>

@svan

thank you for the reply.  
I’m not sure if I understood that well. Can we understand that it cannot be solved in a ‘processing tool’?

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [January 18, 2023, 8:23pm UTC](https://discourse.processing.org/t/android-please-tell-me-how-to-make-the-title-bar-visible-in-the-processing-app-help-me/40634/4 "2023-01-18T20:23:00Z")

</div>

As it turns out it is possible to place an actionBar in an Android window. The following code puts up a toolbar on my Samsung tablet. I did change the manifest.xml file also to leave out the ‘NoActionBar’ parameter. The toolbar is blank so you’ll have to figure out what you want on it. The source code for the action bar and changes to the manifest file are shown below:

```auto
import android.app.Activity;
import android.content.Context;
import android.app.ActionBar;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toolbar;

Activity activity;
Context ctx;
Toolbar tbar;

void setup() {
  activity = this.getActivity();
  ctx = activity.getApplicationContext();
  tbar = new Toolbar(ctx);
  activity.setActionBar(tbar);
  ActionBar actionBar = activity.getActionBar(); 
  println("actionBar: ",actionBar);
  actionBar.show();
}

void draw() {  
}

```

**manifest.xml:**

```auto
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package=""
          android:versionCode="1"
          android:versionName="1.0">
    <application android:label=""
                 android:icon="@mipmap/ic_launcher">
        <activity android:name=".MainActivity"
                  android:theme="@style/Theme.AppCompat.Light">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity> 
    </application>
</manifest>

```

Note that `.NoActionBar.FullScreen` was deleted from android:theme.

 ![tbar](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/e/de36392e5d38082ddf3438831b2cfb7c3ed36ef8.png)

---

<div class="post-metadata">

### Author: ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)
#### Post date: [January 24, 2023, 8:41am UTC](https://discourse.processing.org/t/android-please-tell-me-how-to-make-the-title-bar-visible-in-the-processing-app-help-me/40634/5 "2023-01-24T08:41:13Z")

</div>

@svan  
Thank you very much for your reply.

1. ‘Processing’ ‘Android Mode for Processing4’  
: It works fine.

2. ‘Processing’ ‘Android Mode for Processing3’  
: It is not reflected. Apparently, it seems to be a ‘AndroidManifest.xml’ problem. No error appears, but the title bar is not applied.

 ![ffff](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/f/a/fa5958fac76be3e45fcd9822d5b54a31e5501abe.jpeg)
