开发者

How do I get my Android game's graphics to update?

开发者 https://www.devze.com 2023-03-09 13:13 出处:网络
I\'m struggling right now to figure out the best way to get the graphics to free up in my Android game. Right now, I\'ve tried the following.

I'm struggling right now to figure out the best way to get the graphics to free up in my Android game. Right now, I've tried the following.

  • Just start everything in onCreate() -> No graphics appear, because I never leave onCreate().
  • Set up a thread - Has problems with dialogs and such, but without dialogs, I can make it work.

So, what should I be doing? I would like to start this when I enter the a开发者_Python百科ctivity, and require no input to start (There are several inputs during the game, of course), at least, ideally. So, what can I do?


If you're having problems with dialogs, you might need to look into runOnUiThread.

0

精彩评论

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

关注公众号