Could you try forcing the activity to a particular orientation so that it cant transition to the other orientation?
<activity android:name=".views.AfterActionReview" android:label="@string/app_name"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.DEFAULT" />
<category android:name="android.intent.category.VIEW" />
</intent-filter>
</activity>
If that is problematic for the overall use of your app, consider moving the db update process to a new activity that you can safely lock to a particular orientation and then switch back to the other one when finished with the db update.
I think you may still face a similar problem if the user quits your app while your long running update is happening.
The additional activity might also give you a place to warn the user not to interrupt the activity while updating.
Hope that helps.
mmeyer
2010-10-16 18:53:12