阅读背景:

将数据传递给Runnable的最佳方法是什么?

来源:互联网 

I generally write most of my code without worrying about threading and such, and get it working and debugged before trying to offload pieces to other threads. For me, the simplest way to do it is to break the function down into a Runnable or two. From there I can start a piece via new Thread(runnable).start() and other pieces I start on the main thread via handler.post().I generally write most of my code without worry




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: