How to make a simple full screen app on android [solved]


#1

How do I make a basic full screen app on android?
Is there an example showing that?
I tried the tutorial, but there is an ugly title bar at the top. I changed the DocumentWindow to a ResizableWindow, but that didn’t change a thing.

Btw, when we create a ui application project with the projucer, perhaps the following android/ios specific bit should be added in the generated main.cpp:

#if JUCE_ANDROID || JUCE_IOS
            setFullScreen (true);
#else
            centreWithSize (getWidth(), getHeight());
#endif

#2

ok, found it!
the solution is to add :

@android:style/Theme.NoTitleBar

in the “Android Theme” option in the projucer Android Project settings!!
Why aren’t those things by default? I guess that once you know it it’s fine, but I lost quite some time figuring that out…
I’m sure that 99% of the android apps needs those fullscreen options no?

Perhaps that could be mentioned in the android tutorial? (sorry if I’m mistaken and if it actually is mentioned there, I’ve read it pretty quickly)


#3

Yep, that’s a good idea and something we’ve been meaning to do for a while. I’ll get those added.


#4

cool. while you’re at it, there is a small typo in the projucer:
Leave empty to build for all possible android archiftectures