Android: avoid calling onCreate() when back from another activity
问题 Assume my application contains two activity, A and B. Both are limited to portrait in AndroidManifest. Activity A started Activity B. In Activity B, there is a button, which calls finish() when clicked. The problem is... When I hold the device vertically(portrait) and click the button, the calling sequence is B.onStop(); B.onDestory(); A.onStart(); However, when I hold the device horizontally(landscape), the sequence becomes B.onStop(); B.onDestory(); A.onCreate(); A.onStart(); I do NOT want