Question

Hey all, I am having an unusual problem with my Game. I am loading six textures in my Game, the initial one is a type of Game Background. Now at click of a Sprite i load a Dialog with infalted XML. The problem occurs here, when it first loads my game Background becomes black, when it reloads again it returns to it's original, when it reloads again it's black and it continues like this. It's a big code and that's why i cannot post it here, may be any one of you help me in this. I am stuck since many days in this, I have not unloaded any Texture, but still it's looking like that...............

Hope to get some help from you all..................

Thanks............

Was it helpful?

Solution

Try copying your game to another project and keep removing stuff to narrow down the problem until you don't have the problem anymore. I'd start with removing textures.

How many textures of what size do you have?

OTHER TIPS

This is my raw guess.

you could have kept the Dialog's inflated xml root layer's(linearlayout) height and width as fill_parent. This could have occupied the entire screen and let things black.

make it as wrap_content to both.

1024x600 Textures are impossible! Both dimensions have to be a power of two, AndEngine does not accept other dimensions as many (all?) devices would not allow this.

Sorry but my time is currently very limited (due to exams =( ).

kkkkk SO it's a very delayed answer but still, may be it may help others. I exactly don't know what the problem was but after removing a texture, making size of some other's small, and also when android got updated, the problem is now very delayed, or it rarely comes.

So as per what i can think there seems only two issues, some memory prob or some bug in android which resolved with new update.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top