B.Gen.Jack.O.Neill
B.Gen.Jack.O.Neill

Reputation: 8397

Java, android - help me understand code please

first, I spend all day finding the answers by myself, with no luck.

So, I am learning to develop for Android. I setup SDK, got everything running. I am also new to java and OOP itself. I have benn programming before, I know several Assemblers and C very well.

So, what I dont really understand is, in every game tutorial, game loop and SurfaceView is started like a new thread. But why? Why to start new thread for this, instead just let it flow from activity start method?

Thanks.

Upvotes: 0

Views: 254

Answers (1)

Ted Hopp
Ted Hopp

Reputation: 234795

The article on Painless Threading explains this very well.

Upvotes: 5

Related Questions