Of cource there is. Just add configChanges attribute to your AndroidManifest.xml, like that:
<activity android:name=".MyActivity"
android:configChanges="orientation|keyboardHidden" />
Activity restart on rotation Android
How do I disable orientation change on Android?
http://developer.android.com/guide/topics/manifest/activity-element.html#config