I am building an Android application which includes a Unity 3d interactive experience.
I have imported the Unity project into Android Studio but when launched the activ
I think I've found solution.
Change that line:
mUnityPlayer = new UnityPlayer(this);
so it creates your own UnityPlayer
subclass, which overrides setFullscreen
method (little bit hacky):
public class UnityPlayerWrapper extends UnityPlayer {
public UnityPlayerWrapper(ContextWrapper contextWrapper) {
super(contextWrapper);
}
@Override
protected void setFullscreen(boolean b) {
super.setFullscreen(false);
}
}
In addition, please remove that line: requestWindowFeature(Window.FEATURE_NO_TITLE);