I have an app with several \'normal\' activities which can run on either landscape or portrait. They are designed for and mostly used on portrait.
This app has one s
You can set in the AndroidManifest a property called android:configChanges
where you can decide which changes you want to manage in code. In this way, the rotation change animation will be disabled and you can handle it as you want in the method onConfigurationChanged
of your Activity
.
<activity
android:name=".MySuperClass"
android:label="@string/read_qrcode"
android:screenOrientation="portrait"
android:configChanges="orientation" />
You might have tried this already, but just in case:
Try defining a "do nothing" animation and call overridePendingTransition()
with its id. Maybe something like:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<translate
android:fromXDelta="0"
android:toXDelta="0"
android:duration="100" />
</set>
Sorry, I didn't have a Galaxy device to test with :)