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. should i use a service or local thread ?

I have an application which requires networking service.
I took on LWUIT4IO and adjusted it to my needs so now i have a network
queue that can run one or more network threads.

Now, my application is based on single root activity that spawns other
child activities as needed (it's a reservation center for vacations,
car rental etc.. each in it's own activity).
The network is common to all and should be used by all activities. the
network thread requires, basically, a callback to notify it's finished
and return the result (input stream or byte array) .

At first i thought that i should use a service instead of a singleton
that will be started in the root activity(the  service will also be
started in the root activity), however working with a local service is
problematic for me:
1. no callbacks which makes me use intents to encapsulate the request
\response in intents - time consuming, also since there is not single
point of listening (i have to use BroadcastReceivers)  i have to add a
calling class name or some other identifier so the sender of the
request will know it's for him, i think this is also a waste of time
and resources since  i need only one listener.
2. i think i CAN use callbacks if i use Binder object to return local
instance of my Service and then use the queuing method directly, this
is problematic for me as acquiring Binder object is asynchronous and i
need it 'on the spot'
3. I thought of using a static instance of the service and null it in
onDestroy of the service, but if i use that way, i'm not so sure i
need a service...
4. i saw a small answer in stackoverflow about inheriting application
and putting whatever member you need there so when you use
getApplication you get this instance and then you can retrieve
whatever you want, is this even advisable ?

In short i'm not so sure Service is what i should use, any advise here
would be great...



2. getProtectionDomain returns nul


My goal is to access the certificate that was used to sign the apk
package; and ordinarily, I would do that from inside the program like

Certificates[] signingCertificates =

Unfortunatly it appers that getProtectionDomain() returns null on
android - according to the specs

this method might return null (to converse space?), but only for
system classes. Since I'm calling this from one of my own classes, I
would expect to get a non-null value, but unfortunatly not :(

I have tried from the emulator, and from an application deployed on my
phone using adb through a USB cable. I'm using the latest SDK (2.2)
and targetting android 1.6.

So I guess I have two questions, the first being: why does
getProtectionDomain return null, and have anyone had any success using
this method from inside an android application.

And the second: Is there some other way to access the certificate that
a given apk package was signed with (I can live with the restriction
that only a given package can know its own certificate).

Kind regards
Brian Graversen


3. Retrieve android:versionName from Library Project

4. Example of adding custom contact group using sdk 1.6

5. How to control UART on Android OS

6. why no BluetoothAdapter.ACTION_REQUEST_DISABLE ???

7. Get timing information about key events