开发者

Java, android - help me understand code please

开发者 https://www.devze.com 2023-02-07 23:30 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消