Handling orientation change during the asyntask in android -


i'm having problem in asyntask. when progress bar has start , once rotate screen, progress bar disappear , activity restart. trying use

setrequestedorientation(activityinfo.screen_orientation_nosensor); 

but if asynctask not in activity... in class file common many activity class. how can setrequestedorientation(activityinfo.screen_orientation_nosensor); help.

this works in app. put line in manifest.

**android:configchanges="orientation|screensize"** 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -