Author Topic: Why is isFullscreenOpaque required in an Android activity?  (Read 418 times)

Offline foreverlearning

  • byte
  • *
  • Posts: 2
    • View Profile
Why is isFullscreenOpaque required in an Android activity?
« on: October 27, 2015, 07:50:39 pm »
I'm new to jPCT-AE. I've imported the HelloWorld-AE project into Android Studio and it gives a warning that the protected method isFullscreenOpaque is never called. I've checked the definition of the superclass, android.app.Activity, and it doesn't declare the method. The method isn't called from anywhere in the sample code.

I used logging to check that the method wasn't being called when running the example on my HTC Desire Z and then removed the method. The sample application seems to run fine without the method so I'm curious whether it is old code that is no longer required or if it is only needed on certain hardware, if it is called by reflection by a particular framework, etc.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: Why is isFullscreenOpaque required in an Android activity?
« Reply #1 on: October 28, 2015, 10:53:23 am »
I really don't know. All I can say is, that old Android versions had and required it to create an opaque display and that jPCT-AE itself doesn't care about it.