Here's the solution:
The context menu has disappeared because by default when you rotate android calls destroy () and then onCreate () , but :
, Android ; , android: configChanges AndroidManifest.xml.
<activity
android:name=".SmsPopupActivity"
android:theme="@android:style/Theme.Dialog"
android:launchMode="singleTask"
android:configChanges="orientation|keyboardHidden"
android:taskAffinity="net.everythingandroid.smspopup.popup">
</activity>
, my contextMenu , , onCreate() .
. :