[android-developers] Re: IllegalThreadStateException when program is restored

2009-02-22 Thread Zombies and Robots
AHA! I *knew* I was doing everything just like LunarLander did. I was! That was the problem. This particular bug was really bothering me. I became a little obsessed with it, so I tried logging practically everything that my game did while it was running. After lots of painstaking work, I

[android-developers] Re: IllegalThreadStateException when program is restored

2009-02-22 Thread Zombies and Robots
On Feb 22, 7:49 am, Mark Murphy mmur...@commonsware.com wrote: In the case of LunarLander, LunarView is a SurfaceView, which has getContext() to return the Context for the view. Oh yeah--thanks! I tried using getContext() to provide the context, and it seems to work for the most part. It's

[android-developers] Re: Touch *extremely* expensive performance-wise

2009-02-19 Thread Zombies and Robots
Thank you both! With those pointers, I was able to figure out and implement working versions of both techniques. Now I just have to decide which one I like better and finish writing my game... --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] IllegalThreadStateException when program is restored

2009-02-18 Thread Zombies and Robots
I'm hoping somebody who is more familiar with Android's application life-cycle will be able to help me out here. I'm writing a game. From inside the game, I open a new activity (a web browser window). Once the user backs out of the browser window, my game shows an error message and quits. I

[android-developers] Re: IllegalThreadStateException when program is restored

2009-02-18 Thread Zombies and Robots
Thanks for the responses! I really appreciate the help! I'm about to give the try/catch and logging idea a try. I'll let you know if I turn up anything. I'll also post the code as soon as I'm able to. I just have to move it from the other computer.

[android-developers] Re: Get the name of the owner of the phone? (the email sender)

2009-02-18 Thread Zombies and Robots
I've been doing some research on this topic myself, but so far, I haven't come up with anything. It seems like a very simple question. Does anyone else have an idea? I'm going back to scouring the API... --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: IllegalThreadStateException when program is restored

2009-02-18 Thread Zombies and Robots
After dissecting my code and playing around with the logs quite a bit, I've determined that the problem starts when the activity's onResume() is called, even though all that my overridden onResume() does is run super.onResume(). There may be more to this. I'll post more later.

[android-developers] Re: Touch *extremely* expensive performance-wise

2009-02-18 Thread Zombies and Robots
I am also developing games which may make heavy use of onTouchEvent(), so this thread looks very helpful to me as well. I've been trying to follow everything you guys have been talking about, but I must admit that after trying several ways of implementing what you suggest, I still haven't been

[android-developers] Re: Touch screen response delay

2009-02-08 Thread Zombies and Robots
an anr occurs? It shoud be in /data/anr with the filename traces.txt. This will show exactly what was running and at what line of code when the anr popped up and should help locate the problem code. On Feb 6, 7:03 pm, Zombies and Robots caecus...@gmail.com wrote: Hello. I am working

[android-developers] Touch screen response delay

2009-02-06 Thread Zombies and Robots
Hello. I am working on a game that displays its graphics through a modified SurfaceView. The game scrolls around a map based on the location of the main character. That all works fine. I am trying to add a feature to the game that allows you to touch the screen and drag the camera around to