I hate this. I made my game, wanted to try it out on my Nexus 10. First appearance, cool Made my application disappear. Then resumed it, and the whole screen is flickering. Ok, its my project most likely…
But! Created a totally new Unity project from scratch, without any objects, nothing, just the default project. Did the same. On resume, the screen was flickering, despite of the fact that I have no objects but just a background color.
So… Other games made with Unity (not by me) work fine on this Nexus 10. However I have seen other games from the Play Store which have the same behavior, flickering around… and around… and around…
First of all. When your application first opens, it has already gone through the “onResume()” event internally handled by the Android OS. However you are telling us that your problem starts when you minimize then bring to front. This makes me think the problem is not inside onResume(), but onPause().
In the second place. Unity3D acts as an intermediary between Unity system and Android system, i.e. it’s its job to handle all the corresponding code conversion from Unity language into Android language. Since you said that other Unity-made games run properly on your device, the only thing that might seem reasonably at first glance is that your Unity3D conversion settings are not adjusted properly. Let me ask you some questions:
1- What version of Unity are you using? Do you own the lastest (most stable) version, correctly up-to-date?
2- What is the minSDK targeted in your Player Settings before Run & Debug? The currently Android version installed on your device should be higher than this minSDK value.
3- Have you tried Run & Debug from a different computer other than you are currently using? This might help you discard some not-too-obvious reasons by which you are getting that flickering behaviour (for example, latest Windows Updates).
@ Thanks so far. I now installed Unity 4.3, before 4.5.1f. Now I think with 4.3 it works. Unfortunately, I do not know if perhaps there are some different default settings in 4.3 than before. I personally have not changed anything during the switching of the Unity versions. API Level 9 I think I remember has been before too. So everything should be the same.
Also now the totally empty scene (just made with “new project”) works without any objects or textures etc.
I have not yet any idea, what could be the reason.
Important is still the fact, that the moving karts leave a trace where it is not flickering (with these special “pixel” edges). However the rest is flickering over the whole screen (also background where no objects are). And the scene without any objects, just background color from cam, flickers over the whole screen too.
Mmm, so strange… I will keep searching for possible solutions. I downloaded and played the game you are saying, “Wrong Way”, trying to reproduce your situation, but don’t get any flickering…
Excuse my insistence, but have you tried building & running from other computer?