我正在使用版本为1.3.1的Sugar ORM来开发我的Android 5.1应用程序。
今天,我注意到在安装我的应用程序后,Sugar ORM会在初始化过程中阻止UI线程约2.4秒钟。
是否有一种方法可以在后台线程中完成这项工作以改善用户体验?
04-07 20:14:42.179 10407-10407/com.sample.app I/Sugar﹕ on create
04-07 20:14:44.354 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.358 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.358 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.360 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.362 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.365 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.366 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.368 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.370 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.372 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.373 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.375 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.377 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.378 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.380 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.381 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.383 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.385 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.389 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.390 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.392 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.395 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.397 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.399 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.400 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.402 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.402 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.405 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.406 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.407 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.407 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.408 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.409 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.410 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.411 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.412 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.413 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.414 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.415 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.415 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.416 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.417 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.418 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.418 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.420 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.420 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.420 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.421 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.421 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.422 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.422 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.423 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.423 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.424 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.425 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.426 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.427 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.427 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.429 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.429 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.430 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.431 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.431 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.432 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.432 10407-10407/com.sample.app I/Sugar﹕ domain class
04-07 20:14:44.506 10407-10407/com.sample.app I/Sugar﹕ create table
04-07 20:14:44.506 10407-10407/com.sample.app D/Sugar﹕ Fetching properties
04-07 20:14:44.507 10407-10407/com.sample.app I/Sugar﹕ creating table ARTICLE