Android graphics get messed up

Hi,

When I run my game on Android 2.1 (build using 2.0 setting) it runs fine the first time. All the menus work, and the game works fine. If I play the game, and then do something like try to return to the game menu screen, sometimes the background graphic will be missing. Once that happens on any screen, it seems pretty much all movie clip animations get messed up to. They appear as white boxes. I’m really not sure what’s going on, but this does not occur in the simulator or on iPhone. I create screens by generating all of the display objects every time the screen is called, and destroying all of them every time the screen is removed. I don’t keep any of the elements in memory.

Also, this is not accounting for the other issue that exists on Android, where hitting home during a game and going back in causes similar graphics-related stuff to go wrong. This happens on first run and not even when trying to go back in to the app.

Please let me know if you need any more information.

~David [import]uid: 6678 topic_id: 1327 reply_id: 301327[/import]

This seems related to the crash on resume bug (#269). I’ve added a link to this thread in the bug report. [import]uid: 3 topic_id: 1327 reply_id: 3613[/import]

DFox, so you never left the game, just went back to a previous screen, and the texture was somehow lost? That’s odd. I know about the resume problem, but this actually sounds different. [import]uid: 54 topic_id: 1327 reply_id: 3623[/import]

Eric, that is correct. I try to go back to my menu screen or some other screen and the background shows up as just all white. Then, if I play the game, movie clips start to show up as white boxes too. I don’t think it ever happens the first time I play.

Please let me know if you’d like me to send my project. [import]uid: 6678 topic_id: 1327 reply_id: 3624[/import]

I just rebuilt my project for Android, and it seems pretty much all these bugs have been squashed!!! Awesome. I would guess some of the fixes were made on the server? Anyway, in my testing, I got no white screens, and after suspending the app, I got no black screens or strange graphic issues. But, I did find one remaining issue. It’s small, but it would be great if it could be fixed. On the suspension of an app, when you come back in, it seems any text display objects show up as black squares. As soon as you make a call to change the .text property, they display properly again.

Anyway, great work, and I think Android support is REALLY getting there now. [import]uid: 6678 topic_id: 1327 reply_id: 3797[/import]

Glad to hear it. Yes, we did some “silent” fixes on the server, we didn’t mention them because we’re still not satisfied with the quality, there are still some problems with resume as you found out. We are continuing to work on those. [import]uid: 54 topic_id: 1327 reply_id: 3924[/import]

Hey Eric,

I don’t want to be a pain, but is there any ETA on the Android fixes? I don’t mean features or anything, I mean just getting rid of all the white/black blocks that appear during normal use and on resume.

I ask because I have a game that I’ve already submitted to the iTunes app store (full version is already in, free version is awaiting approval), and we’re going to be doing a lot of marketing. But we mainly wrote this game for Android, which is all ready to go minus these bugs. So really I’m trying to figure out if we should just almost forget about the Android platform for our marketing or attempt to wait for these issues to be corrected. We really wanted to advertise it as being for iPhone, iPad and Android, but I’d rather not wait if it’s going to be a decent amount of time.

Any insight is greatly appreciated because I’m a little confused about which direction to go in. [import]uid: 6678 topic_id: 1327 reply_id: 4145[/import]

You’re not being a pain in the least… but on our side, it’s a balancing act between bug fixes and feature parity with text fields etc. It doesn’t help that Android’s SDK is not exactly well documented or even stable (which is why the bug exists in the first place).

That said, we’re going to be doing a big push to stabilize and implement Android features in the next couple weeks. This issue (case #269) is currently priority 2. It won’t make the beta 7 window, but if it is not fixed for beta 8, I will raise it to priority 1 (showstopper).
[import]uid: 54 topic_id: 1327 reply_id: 4196[/import]

OK, thanks, sounds good, I’m just really happy it’s being worked on because I’m really, really excited to get my game out on Android. I’ll work on promoting the iPhone/iPad version for the next few weeks :slight_smile: If you have anything that you put up behind the scenes with any sort of fixes I’d appreciate it if you could let me know and I would be really happy to test it. Thanks again and good luck with the Android SDK! [import]uid: 6678 topic_id: 1327 reply_id: 4205[/import]