1. Download our Official Android App: Forums for Android!

Apps Application shuts down

Discussion in 'Android Development' started by Finnboy11, Jun 6, 2011.

  1. Finnboy11

    Finnboy11 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 6, 2011

    Jun 6, 2011
    1
    0
    5
    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.
     

    Advertisement

Share This Page

Loading...