主线程
ndzj981479673
研究生
展开
-
打开或者创建数据库的操作应该放在哪里?
打开strictMode后, {@link #getWritableDatabase}, this method may * take a long time to return, so you should not call it from the * application main thread, including from * {@link a原创 2014-08-18 18:56:21 · 1644 阅读 · 1 评论 -
在非主线程里处理bitmap
不能在main ui线程里load网络图片,启动一个异步taskshould not be executed on the main UI thread if the source data is read from disk or a network location (or really any source other than memory)For example, it’s no翻译 2014-08-28 20:15:20 · 831 阅读 · 0 评论