How i can block calling onCreate while rotating device when My AsyncTask start?
Posted
by
Labeeb P
on Stack Overflow
See other posts from Stack Overflow
or by Labeeb P
Published on 2010-12-30T05:47:57Z
Indexed on
2010/12/30
5:54 UTC
Read the original article
Hit count: 158
android
Hi,
Me testing in Samsung Galaxy tab. In that i have made two layout folder for both ORIENTATION_LANDSCAPE and ORIENTATION_PORTRAIT with specific layout xml in it.
In that layout i have a button and on clicking it start a progress dialog (doing some stuff using AsyncTask, after that going to new intent)
But when the device is rotated when the progress dialog is working, that dialog and AsyncTask stop and new layout is loaded. If i understood correctly, I think the onCreate
is called when device is rotated
How i can block calling onCreate while rotating device when My AsyncTask start?
Thank you
© Stack Overflow or respective owner