tags:

views:

14

answers:

1

Is it possible to record video in a service, that is without setting the setPreviewDisplay? I tried it on a HTC Desire, however it is throwing this info in the log,

MediaRecorder Prepare Failed: -1

CameraInput No surface is available for display

Is there some additional properties to be set?

A: 

I believe according to the docs

public final void setPreviewDisplay (SurfaceHolder holder)

Since: API Level 1 Sets the Surface to be used for live preview. A surface is necessary for preview, and preview is necessary to take pictures. The same surface can be re-set without harm.

I know you are desiring to take video but, I take this to me any camera usage requires a surface.

Greg