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.
The article on Painless Threading explains this very well.
精彩评论