I have coded an application (game). It is in the development stage and only the menu and interface are working. If I keep the app open without doing anything, it shuts itself down after some time (before screensaver turns on). When I had "canvas.drawColor(Color.WHITE);" on the beginning of the onDraw function, it showed white screen and the only icon that didn't have transparent background (and was the last icon created in onDraw. without it nothing appears except the white screen before closing) in the view and then shut down. When I removed the "canvas.drawColor(Color.WHITE);", it showed everything normally until the two buttons in the front (transparent pics, created with "canvas.drawBitmap()" and touch handled with coordinated "onTouchEvent()") became partly transparent, turned normal and the app shut down. Does somebody have advices? I haven't even done anything complicated.