Graphics output to TV-out

by Yana » Thu, 14 Oct 2010 01:35:41 GMT


Sponsored Links
 I have device named "Smart Pad" (manufactured in China) running under
Android 1.5. This gadget has TV-out. "VideoPlayer" application
installed on this device can show video via TV-out. I need to write
the application for drawing the graphics via TV-out on my head-mounted
display (I have Eyetop Centra). How can I select appropriate video
device in my program?

--



Other Threads

1. Trouble with GLSurfaceView (more info: works if only view, but not as one of several)

More information:

It works if it is the ONLY view on the page, as done by

_surfaceView = new GLSurfaceView(this);
setContentView(_surfaceView);

However, if I make it part of the app framework, it fails as described
above in this discussion:
setContentView(R.layout.main);
_surfaceView = (GLSurfaceView)this.findViewById(R.id.SurfaceView);

See below for main.xml

Odd, eh?

Thanks in advance

---------------------- main.xml ----------------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Put text here" />
  <LinearLayout
    android:id="@+id/LinearLayout01"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <Button
      android:text="Solid"
      android:id="@+id/SolidWireButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"></Button>
    <Button
      android:text="Sphere"
      android:id="@+id/SphereButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"></Button>
    <Button
      android:text="Cube"
      android:id="@+id/CubeButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"></Button>

  </LinearLayout>
  <android.opengl.GLSurfaceView
    android:id="@+id/SurfaceView"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"></android.opengl.GLSurfaceView>
</LinearLayout>



--~--~---------~--~----~------------~-------~--~----~

2. 1.5 Example GLSurfaceViewActivity.java fails after stop/resume

I am having trouble with the example for use of GLSurfaceView (see
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/GLSurfaceViewActivity.html
).

I created a normal Android project in the Eclipse IDE, added the
GLSurfaceViewActivity class and related from the sample directory, set
the activity to GLSurfaceViewActivity, and ran it on the emulator.

It worked. Then I hit the home button, launched another app, hit home
again, and launched my test app again. This time, I got a blank screen
(with now exceptions thrown in logcat);.

Any ideas?

I was motivated to try this example because if have been having the
same trouble with my own app - discussed
iat

3. noob Question button functions

4. How Can I Block Unwanted Calls.

5. Populate spinner

6. Android Labrador Problem

7. how to receive general IO events ?