AsyncTaskLoader onLoadFinished with a pending task and config change

后端 未结 4 1177
醉酒成梦
醉酒成梦 2021-02-02 10:11

I\'m trying to use an AsyncTaskLoader to load data in the background to populate a detail view in response to a list item being chosen. I\'ve gotten it mostly work

4条回答
  •  有刺的猬
    2021-02-02 10:55

    Ok I'm trying to understand this excuse me if I misunderstood anything, but you are losing references to something when the device rotates.

    Taking a stab...

    would adding

    android:configChanges="orientation|keyboardHidden|screenSize"
    

    in your manifest for that activity fix your error? or prevent onLoadFinished() from saying the activity stopped?

提交回复
热议问题