Handle screen orientation changes when there are AsyncTasks running

后端 未结 3 1562
庸人自扰
庸人自扰 2020-12-01 02:15

I\'ve been bugged by this for a while. How do I properly handle screen orientation changes while I have a separate Thread / AsyncTask running? Curr

3条回答
  •  一个人的身影
    2020-12-01 02:49

    Take a look the droid-fu library BetterAsyncTask. It is meant to handle this exact case.

    http://brainflush.wordpress.com/2009/11/16/introducing-droid-fu-for-android-betteractivity-betterservice-and-betterasynctask/

提交回复
热议问题