AsyncTaskLoader basic example. (Android)

前端 未结 6 1675
[愿得一人]
[愿得一人] 2020-12-01 02:56

I am using a Loader in my application and based on the result I get from the query I perform on COntacts using this Loader I perform some calculations and store them back in

6条回答
  •  爱一瞬间的悲伤
    2020-12-01 03:54

    I prefer using Bolts-Android. it is very easy.

    https://github.com/BoltsFramework/Bolts-Android

    Task.callInBackground(new Callable() {
      public Void call() {
        // Do a bunch of stuff.
      }
    }).continueWith(...);
    

提交回复
热议问题