Android - new intent and activity problems?

A static method can contain an intent Pass a Context in a param of the static method and use that to launch a new Context.

A static method can contain an intent. Pass a Context in a param of the static method and use that to launch a new Context.

I'm developing an android app, and have developed a game, but I now have stupid problem. You control a UFO and when it's health will be reduced to zero the game should be over. How should I contruct gameOver?

Previous I've used an intent to open a new activity but this requires the class to extend Activity, and since I want the mainthread to look up when the UFO has his health reduced to zero I can't just call GameActivity. GameOver since it want to use a static method to be called, and since a static method can't contain a new intent I can't figure it out.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions