How to set the video display to the horizon or vertical of display panel in video playing

by rktb » Fri, 13 Mar 2009 06:26:12 GMT

Sponsored Links
 You should be able to use the "orientation" attribute in the linear
layout of your AndroidManifest.xml.



How to set the video display to the horizon or vertical of display panel in video playing

by waterblood » Fri, 13 Mar 2009 06:59:06 GMT


But i cannot locate where the Gallery app's source code directory. Can
you point me where i can find it. Why there is no Gallery.apk in my
out director. But other app all have a corresponding *.apk in my out


Sponsored Links

How to set the video display to the horizon or vertical of display panel in video playing

by Dianne Hackborn » Fri, 13 Mar 2009 08:49:47 GMT

 It's part of Camera.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


Other Threads

1. Blank screen displayed after downloading from Android Browser.

Does anyone have the solution for this?

Farida Khan


2. Two onCreate (and onDestroy) invocations on orientation chag


With following simple code (on clean, new android project):

public class RotationTest extends Activity {

    private static final String LOGTAG = "RotationTest";

    public void onCreate(Bundle savedInstanceState) {
        Log.d(LOGTAG, "onCreate():");

    protected void onDestroy() {
        Log.d(LOGTAG, "onDestroy():");

the onCreate/onDestroy pair is called twice when rotating from
landscape -> portrait on Android 1.6 emulator.

Here is the snippet of LogCat (doing rotation to landscape and back to
01-04 14:05:35.895: DEBUG/RotationTest(704): onCreate():
01-04 14:13:53.514: DEBUG/RotationTest(704): onDestroy():
01-04 14:13:53.916: DEBUG/RotationTest(704): onCreate():
01-04 14:14:02.035: DEBUG/RotationTest(704): onDestroy():
01-04 14:14:02.604: DEBUG/RotationTest(704): onCreate():
01-04 14:14:02.716: DEBUG/RotationTest(704): onDestroy():
01-04 14:14:03.015: DEBUG/RotationTest(704): onCreate():

On the other hand, when running the application on the G1 phone, the
problem does not occur, when the keyboard is slid (then the rotation

I've tried to find an open issue or a similar thread but I am yet

Could anyone give a pointer or a description of this behavior?

Has anyone experienced it on Eclair or later(!) ?


3. Linux kernel modifications for Android

4. Logs from framework.jar

5. exclusion filter not being respected - resources are being included in apk

6. get the currently displayed activity's name using service

7. create app that comes with a widget and the program