i have a Problem with my game app:
It crashes if you minimize it... e.g. if you press the home button or click on ads. Here is the Log:
>threadid=19: thread exiting with uncaught exception (group=0x417f2da0) 08-26 23:42:38.207 17397 17478 E AndroidRuntime FATAL EXCEPTION: Thread-38883 08-26 23:42:38.207 17397 17478 E AndroidRuntime Process: de.lolxdfly.flypig, PID: 17397 08-26 23:42:38.207 17397 17478 E AndroidRuntime java.lang.NullPointerException 08-26 23:42:38.207 17397 17478 E AndroidRuntime at de.lolxdfly.flypig.GameView.onDraw(GameView.java:87) 08-26 23:42:38.207 17397 17478 E AndroidRuntime at de.lolxdfly.flypig.GameLoopThread.run(GameLoopThread.java:34)
I use the code from this TuT: http://panjutorials.de/tutorials/android-gameapp-entwicklungstutorial-lazy-pudding/
Mfg lolxdfly
==================== Edit: I fixed the crash, but if i resume the all rects are set to 0, except the rects for the pause menu. The pause menu is also opened. It is possible, that some happen with the canvas if the app is paused?