• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle background operation when screen Rotation

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have app which download pdf from internet.So i am using AsyncTask to download file from Internet. When i rotate the phone normally Activity life cycle changes.So how to handle this with Background operation?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either handle orientation changes yourself (android:configChanges in the manifest) instead of having Android handle it, or use the DownloadManager if it's HTTP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic