hello
I am workin on a video player app in which I want only the landscape
orientation active coz right now when the user tilts the phone during
video runtime, it restarts playback in that orientation.
How can I easily avoid this?
Thanks,
Abhi
--
You received this message because you are
Hi Abhi,
You need to do 2 things:
1) Add android:configChanges=orientation to the activity declaration on
your manifest file. Something like this:
activity android:name=activity
...
android:configChanges=orientation
2) Override method onConfigurationChanged() in
You can also set the screenOrientation to be as landscape in your Android
Manifest file for the Activity which has the video player.
Eg:-
activity android:name=.videoplayer android:label=@string/app_name
android:screenOrientation=landscape/activity
Thanks,
Prajakta
On Mon, Apr 26, 2010 at
3 matches
Mail list logo