According to http://developer.android.com/training/basics/activity-lifecycle/recreating.html
There are various ways to trigger activity recreation.
check this out -https://developer.android.com/reference/android/app/Activity#isChangingConfigurations()
https://developer.android.com/reference/android/app/Activity#isChangingConfigurations()
You can simply save value returned by isChangingConfigurations() in bundle and then check it in onCreate
isChangingConfigurations()
onCreate