views:

193

answers:

2

I am pretty new to Android and mobile development in general. I am creating an Android application that plays a video using VideoView after a button is selected. The problem is when you rotate the phone the video restarts. I know its because the activity is destroyed and recreated when it is rotated. So I just locked the video player in landscape view. But by default you have to tilt the phone to the left (right side up) to be able to see it correctly. The other way just shows the video upside down.

Is there a way to show the video correctly if the user tilts the phone to the right (left side up)? Thanks for any input.

A: 

http://t3ch.com/blog/android_transitions/

shows how to restart video instance from where you left off when rotation occurs.

Emile
A: 

Hey thanks for the reply, I have moved on to another project but that helped one of my problems. As far as my other question goes, as far as I can tell, Android devices do not support 360 rotation. So you cannot rotate the phone so that the left side is up. Can anyone confirm that? Or is there a way to do it? Thanks for the help.

EDIT: This is Brian, the one who asked the question. Sorry I haven't posted much on here and meant to reply instead of post another answer.

Brian