Nifty on Android is broken, again

@Pixelapp said: @t0neg0d Like I said, I stripped naked my program from any TEXT gui. Button guis where still there. And still got the error.

I’ll get back when I pen point the problem, but right now I’m really busy with life thingies.


The stat view uses a font, and is loaded in any cases. Even if you hide the statview

@nehon said: The stat view uses a font, and is loaded in any cases. Even if you hide the statview

Well, to be pedantic, the “guiFont” is loaded whether it is used or not. The stats view itself was moved to an app state and can be completely removed from the app simply by not including it… but the guiFont will be setup anyway.

@pspeed said: Well, to be pedantic, the "guiFont" is loaded whether it is used or not. The stats view itself was moved to an app state and can be completely removed from the app simply by not including it... but the guiFont will be setup anyway.
I was almost certain that you would bring that up :p. I didn't want to go into the details, but the way to remove it is to override the SimpleApplication constructor. But on android the SimpleApp in instantiated with reflection so the no args constructor is called, so I guess the stat view is loaded whatever you do in this case.
@nehon said: I was almost certain that you would bring that up :p. I didn't want to go into the details, but the way to remove it is to override the SimpleApplication constructor. But on android the SimpleApp in instantiated with reflection so the no args constructor is called, so I guess the stat view is loaded whatever you do in this case.

…except in Android it is starting your application… a subclass of SimpleApplication, which could have called super() with whatever it wanted.

But guiFont is still loaded either way. :slight_smile:

@pspeed said: ...except in Android it is starting _your_ application... a subclass of SimpleApplication, which could have called super() with whatever it wanted.
See what you did Mr pedantic?