• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Application shuts down

Finnboy11

Lurker
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. O.o

Does somebody have advices? I haven't even done anything complicated.
 
Back
Top Bottom